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<NID: PartialEq + NodeId> PartialEq<SnapshotSignature<NID>> for SnapshotSignature<NID>
impl<NID: PartialEq + NodeId> PartialEq<SnapshotSignature<NID>> 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 ==
.impl<NID: Eq + NodeId> Eq for SnapshotSignature<NID>
impl<NID: NodeId> StructuralEq for SnapshotSignature<NID>
impl<NID: NodeId> StructuralPartialEq for SnapshotSignature<NID>
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.