Struct openraft::SnapshotSegmentId
source · pub struct SnapshotSegmentId {
pub id: SnapshotId,
pub offset: u64,
}
Expand description
The identity of a segment of a snapshot.
Fields§
§id: SnapshotId
§offset: u64
Trait Implementations§
source§impl Clone for SnapshotSegmentId
impl Clone for SnapshotSegmentId
source§fn clone(&self) -> SnapshotSegmentId
fn clone(&self) -> SnapshotSegmentId
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 Debug for SnapshotSegmentId
impl Debug for SnapshotSegmentId
source§impl Default for SnapshotSegmentId
impl Default for SnapshotSegmentId
source§fn default() -> SnapshotSegmentId
fn default() -> SnapshotSegmentId
Returns the “default value” for a type. Read more
source§impl Display for SnapshotSegmentId
impl Display for SnapshotSegmentId
source§impl PartialEq<SnapshotSegmentId> for SnapshotSegmentId
impl PartialEq<SnapshotSegmentId> for SnapshotSegmentId
source§fn eq(&self, other: &SnapshotSegmentId) -> bool
fn eq(&self, other: &SnapshotSegmentId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SnapshotSegmentId> for SnapshotSegmentId
impl PartialOrd<SnapshotSegmentId> for SnapshotSegmentId
source§fn partial_cmp(&self, other: &SnapshotSegmentId) -> Option<Ordering>
fn partial_cmp(&self, other: &SnapshotSegmentId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SnapshotSegmentId
impl StructuralEq for SnapshotSegmentId
impl StructuralPartialEq for SnapshotSegmentId
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotSegmentId
impl Send for SnapshotSegmentId
impl Sync for SnapshotSegmentId
impl Unpin for SnapshotSegmentId
impl UnwindSafe for SnapshotSegmentId
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.