pub struct SnapshotHeaderRecordData {
pub version: i16,
pub last_contained_log_timestamp: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§version: i16The version of the snapshot header record.
last_contained_log_timestamp: i64The append time of the last record from the log contained in this snapshot.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl SnapshotHeaderRecordData
impl SnapshotHeaderRecordData
pub fn with_version(self, value: i16) -> Self
pub fn with_last_contained_log_timestamp(self, value: i64) -> 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 SnapshotHeaderRecordData
impl Clone for SnapshotHeaderRecordData
Source§fn clone(&self) -> SnapshotHeaderRecordData
fn clone(&self) -> SnapshotHeaderRecordData
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 SnapshotHeaderRecordData
impl Debug for SnapshotHeaderRecordData
Source§impl Default for SnapshotHeaderRecordData
impl Default for SnapshotHeaderRecordData
Source§impl PartialEq for SnapshotHeaderRecordData
impl PartialEq for SnapshotHeaderRecordData
Source§fn eq(&self, other: &SnapshotHeaderRecordData) -> bool
fn eq(&self, other: &SnapshotHeaderRecordData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotHeaderRecordData
Auto Trait Implementations§
impl Freeze for SnapshotHeaderRecordData
impl RefUnwindSafe for SnapshotHeaderRecordData
impl Send for SnapshotHeaderRecordData
impl Sync for SnapshotHeaderRecordData
impl Unpin for SnapshotHeaderRecordData
impl UnsafeUnpin for SnapshotHeaderRecordData
impl UnwindSafe for SnapshotHeaderRecordData
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