pub struct StoreHandle { /* private fields */ }Expand description
Safe pointer to an entry.
A store handle stays valid at least until the next mutable operation. Store operations taking a handle as argument always verify that the handle is still valid.
Implementations§
Source§impl StoreHandle
impl StoreHandle
Sourcepub fn get_length<S: Storage>(&self, store: &Store<S>) -> Result<usize, Error>
pub fn get_length<S: Storage>(&self, store: &Store<S>) -> Result<usize, Error>
Returns the value length of the entry.
§Errors
Returns INVALID_ARGUMENT if the entry has been deleted or compacted.
Trait Implementations§
Source§impl Clone for StoreHandle
impl Clone for StoreHandle
Source§fn clone(&self) -> StoreHandle
fn clone(&self) -> StoreHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StoreHandle
impl RefUnwindSafe for StoreHandle
impl Send for StoreHandle
impl Sync for StoreHandle
impl Unpin for StoreHandle
impl UnsafeUnpin for StoreHandle
impl UnwindSafe for StoreHandle
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