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> Freeze for Snapshot<DB>
impl<DB> RefUnwindSafe for Snapshot<DB>where
DB: RefUnwindSafe + ?Sized,
impl<DB> Send for Snapshot<DB>where
DB: ?Sized,
impl<DB> Sync for Snapshot<DB>
impl<DB> Unpin for Snapshot<DB>
impl<DB> UnwindSafe for Snapshot<DB>where
DB: UnwindSafe + ?Sized,
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