pub struct SnapshotId {
pub end_offset: i64,
pub epoch: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§end_offset: i64The end offset of the snapshot.
epoch: i32The epoch of the snapshot.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl SnapshotId
impl SnapshotId
pub fn with_end_offset(self, value: i64) -> Self
pub fn with_epoch(self, value: i32) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for SnapshotId
impl Clone for SnapshotId
Source§fn clone(&self) -> SnapshotId
fn clone(&self) -> SnapshotId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SnapshotId
impl Debug for SnapshotId
Source§impl Default for SnapshotId
impl Default for SnapshotId
Source§impl PartialEq for SnapshotId
impl PartialEq for SnapshotId
Source§fn eq(&self, other: &SnapshotId) -> bool
fn eq(&self, other: &SnapshotId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotId
Auto Trait Implementations§
impl Freeze for SnapshotId
impl RefUnwindSafe for SnapshotId
impl Send for SnapshotId
impl Sync for SnapshotId
impl Unpin for SnapshotId
impl UnsafeUnpin for SnapshotId
impl UnwindSafe for SnapshotId
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