Struct sample_programs::kvs::StorageBucket
source · #[repr(C)]pub struct StorageBucket<V>where
V: Persistable,{
inner: PHashMap<PString, V>,
}Fields§
§inner: PHashMap<PString, V>Implementations§
source§impl<V> StorageBucket<V>where
V: Persistable,
impl<V> StorageBucket<V>where V: Persistable,
Trait Implementations§
source§impl<V> Persistable for StorageBucket<V>where
V: Persistable,
impl<V> Persistable for StorageBucket<V>where V: Persistable,
fn as_bytes(&self) -> &[u8] ⓘwhere Self: Sized,
fn from_bytes(src: *mut [u8]) -> *mut Selfwhere Self: Sized,
fn from_bytes_ref(src: *const [u8]) -> &'static Selfwhere Self: Sized,
§fn adjust_from(&mut self, _other: &Self)
fn adjust_from(&mut self, _other: &Self)
Used for object moves.
source§impl<V> PersistentlyAllocatable for StorageBucket<V>where
V: Persistable,
impl<V> PersistentlyAllocatable for StorageBucket<V>where V: Persistable,
fn set_allocator(&mut self, allocator: Arc<RwLock<BumpAllocator>>)
fn get_allocator(&self) -> Option<Arc<RwLock<BumpAllocator>>>
Auto Trait Implementations§
impl<V> !RefUnwindSafe for StorageBucket<V>
impl<V> Send for StorageBucket<V>where V: Send,
impl<V> Sync for StorageBucket<V>where V: Sync,
impl<V> Unpin for StorageBucket<V>where V: Unpin,
impl<V> !UnwindSafe for StorageBucket<V>
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