pub struct Snapshot { /* private fields */ }Expand description
A point-in-time snapshot of the database.
Snapshots provide a consistent view of the data at the time they were created.
In an async context with spawn_blocking, reads using a snapshot may see later writes
due to scheduling, but they offer best-effort consistency.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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