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
The unique identifier of the snapshot stream.
offset: u64
The offset of this segment in the entire snapshot data.
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<'de> Deserialize<'de> for SnapshotSegmentId
impl<'de> Deserialize<'de> for SnapshotSegmentId
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 Display for SnapshotSegmentId
impl Display for SnapshotSegmentId
source§impl PartialEq for SnapshotSegmentId
impl PartialEq 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 for SnapshotSegmentId
impl PartialOrd 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 moresource§impl Serialize for SnapshotSegmentId
impl Serialize for SnapshotSegmentId
impl Eq for SnapshotSegmentId
impl StructuralPartialEq for SnapshotSegmentId
Auto Trait Implementations§
impl Freeze for SnapshotSegmentId
impl RefUnwindSafe for SnapshotSegmentId
impl Send for SnapshotSegmentId
impl Sync for SnapshotSegmentId
impl Unpin for SnapshotSegmentId
impl UnwindSafe for SnapshotSegmentId
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