pub struct Snapshot<DB>where
DB: ParallelDatabase + ?Sized,{ /* private fields */ }
Expand description
Simple wrapper struct that takes ownership of a database DB
and
only gives &self
access to it. See the snapshot
method
for more details.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<DB: ?Sized> RefUnwindSafe for Snapshot<DB>where
DB: RefUnwindSafe,
impl<DB: ?Sized> Send for Snapshot<DB>
impl<DB: ?Sized> Sync for Snapshot<DB>where
DB: Sync,
impl<DB: ?Sized> Unpin for Snapshot<DB>where
DB: Unpin,
impl<DB: ?Sized> UnwindSafe for Snapshot<DB>where
DB: UnwindSafe,
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