Struct openraft::storage::SnapshotSignature
source · pub struct SnapshotSignature<NID: NodeId> {
pub last_log_id: Option<LogId<NID>>,
pub last_membership_log_id: Option<LogId<NID>>,
pub snapshot_id: SnapshotId,
}
Expand description
A small piece of information for identifying a snapshot and error tracing.
Fields§
§last_log_id: Option<LogId<NID>>
Log entries upto which this snapshot includes, inclusive.
last_membership_log_id: Option<LogId<NID>>
The last applied membership log id.
snapshot_id: SnapshotId
To identify a snapshot when transferring.
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for SnapshotSignature<NID>
impl<NID: Clone + NodeId> Clone for SnapshotSignature<NID>
source§fn clone(&self) -> SnapshotSignature<NID>
fn clone(&self) -> SnapshotSignature<NID>
Returns a copy 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 moresource§impl<'de, NID: NodeId> Deserialize<'de> for SnapshotSignature<NID>
impl<'de, NID: NodeId> Deserialize<'de> for SnapshotSignature<NID>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<NID: PartialEq + NodeId> PartialEq for SnapshotSignature<NID>
impl<NID: PartialEq + NodeId> PartialEq for SnapshotSignature<NID>
source§fn eq(&self, other: &SnapshotSignature<NID>) -> bool
fn eq(&self, other: &SnapshotSignature<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID: NodeId> Serialize for SnapshotSignature<NID>
impl<NID: NodeId> Serialize for SnapshotSignature<NID>
impl<NID: Eq + NodeId> Eq for SnapshotSignature<NID>
impl<NID: NodeId> StructuralPartialEq for SnapshotSignature<NID>
Auto Trait Implementations§
impl<NID> Freeze for SnapshotSignature<NID>where
NID: Freeze,
impl<NID> RefUnwindSafe for SnapshotSignature<NID>where
NID: RefUnwindSafe,
impl<NID> Send for SnapshotSignature<NID>
impl<NID> Sync for SnapshotSignature<NID>
impl<NID> Unpin for SnapshotSignature<NID>where
NID: Unpin,
impl<NID> UnwindSafe for SnapshotSignature<NID>where
NID: 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