pub struct PersistentRef<Key, Value>{ /* private fields */ }
Expand description
A warpper represents managed data. This struct gives shared, readonly access to the value. When user want to use some sort of data stored in the DB, it should always be warpped in this type. When the value is dropped, it’s stored to a persistent storage.
Implementations§
Trait Implementations§
Source§impl<Key, Value> Clone for PersistentRef<Key, Value>
impl<Key, Value> Clone for PersistentRef<Key, Value>
Source§fn clone(&self) -> PersistentRef<Key, Value>
fn clone(&self) -> PersistentRef<Key, Value>
Returns a copy of the value. Read more
1.0.0 · 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<Key, Value> Freeze for PersistentRef<Key, Value>where
Key: Freeze,
impl<Key, Value> RefUnwindSafe for PersistentRef<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> !Send for PersistentRef<Key, Value>
impl<Key, Value> !Sync for PersistentRef<Key, Value>
impl<Key, Value> Unpin for PersistentRef<Key, Value>where
Key: Unpin,
impl<Key, Value> UnwindSafe for PersistentRef<Key, Value>where
Key: UnwindSafe,
Value: RefUnwindSafe,
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