pub(super) struct Store {
slab: Slab<Stream>,
ids: IndexMap<StreamId, SlabIndex>,
}
Expand description
Storage for streams
Fields§
§slab: Slab<Stream>
§ids: IndexMap<StreamId, SlabIndex>
Implementations§
source§impl Store
impl Store
pub fn new() -> Self
pub fn find_mut(&mut self, id: &StreamId) -> Option<Ptr<'_>>
pub fn insert(&mut self, id: StreamId, val: Stream) -> Ptr<'_>
pub fn find_entry(&mut self, id: StreamId) -> Entry<'_>
pub(crate) fn for_each<F>(&mut self, f: F)
pub fn try_for_each<F, E>(&mut self, f: F) -> Result<(), E>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more