pub struct SnapshotData {
pub last_included_index: LogIndex,
pub last_included_term: Term,
pub data: Vec<u8>,
}Expand description
A point-in-time snapshot of applied state, suitable for transfer to followers or for local log compaction.
Fields§
§last_included_index: LogIndexThe index of the last entry included in this snapshot.
last_included_term: TermThe term of the last entry included in this snapshot.
data: Vec<u8>The serialised state machine data.
Trait Implementations§
Source§impl Clone for SnapshotData
impl Clone for SnapshotData
Source§fn clone(&self) -> SnapshotData
fn clone(&self) -> SnapshotData
Returns a duplicate 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 Freeze for SnapshotData
impl RefUnwindSafe for SnapshotData
impl Send for SnapshotData
impl Sync for SnapshotData
impl Unpin for SnapshotData
impl UnsafeUnpin for SnapshotData
impl UnwindSafe for SnapshotData
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