pub struct Snapshot<C>where
C: RaftTypeConfig,{
pub meta: SnapshotMeta<C::NodeId, C::Node>,
pub snapshot: Box<C::SnapshotData>,
}
Expand description
The data associated with the current snapshot.
Fields§
§meta: SnapshotMeta<C::NodeId, C::Node>
metadata of a snapshot
snapshot: Box<C::SnapshotData>
A read handle to the associated snapshot.
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Snapshot<C>
impl<C> RefUnwindSafe for Snapshot<C>where
<C as RaftTypeConfig>::SnapshotData: RefUnwindSafe,
<C as RaftTypeConfig>::NodeId: RefUnwindSafe,
<C as RaftTypeConfig>::Node: RefUnwindSafe,
impl<C> Send for Snapshot<C>
impl<C> Sync for Snapshot<C>
impl<C> Unpin for Snapshot<C>
impl<C> UnwindSafe for Snapshot<C>where
<C as RaftTypeConfig>::SnapshotData: UnwindSafe,
<C as RaftTypeConfig>::NodeId: UnwindSafe + RefUnwindSafe,
<C as RaftTypeConfig>::Node: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)