Struct ztopic::StorageManager
source · pub struct StorageManager<K, V, S>{ /* private fields */ }Implementations§
source§impl<K, V, S> StorageManager<K, V, S>
impl<K, V, S> StorageManager<K, V, S>
pub fn new(storage: S) -> Self
pub fn new_stream(&self, stream_id: usize)
pub fn drop_stream(&self, stream_id: usize)
pub fn with_key(&mut self, stream_key: K, stream_id: usize)
pub fn register(&self, stream_id: usize, waker: &Waker)
pub fn insert(&self, value: V)
pub fn insert_with(&self, key: K, value: V)
pub fn size_hint(&self, cursor: usize) -> usize
pub fn size_hint_with(&self, key: K, cursor: usize) -> usize
pub fn get_item(&self, cursor: usize) -> Option<(&V, usize)>
Trait Implementations§
Auto Trait Implementations§
impl<K, V, S> Freeze for StorageManager<K, V, S>where
K: Freeze,
impl<K, V, S> !RefUnwindSafe for StorageManager<K, V, S>
impl<K, V, S> Send for StorageManager<K, V, S>where
K: Send,
impl<K, V, S> Sync for StorageManager<K, V, S>where
K: Sync,
impl<K, V, S> Unpin for StorageManager<K, V, S>where
K: Unpin,
impl<K, V, S> !UnwindSafe for StorageManager<K, V, S>
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