pub struct LogPosition {
pub offset: u64,
pub length: u32,
}Expand description
Position of a command entry within a log segment
Fields§
§offset: u64Byte offset from the start of the segment file
length: u32Length of the serialized command in bytes
Trait Implementations§
Source§impl Clone for LogPosition
impl Clone for LogPosition
Source§fn clone(&self) -> LogPosition
fn clone(&self) -> LogPosition
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 LogPosition
impl Debug for LogPosition
Source§impl<'de> Deserialize<'de> for LogPosition
impl<'de> Deserialize<'de> for LogPosition
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 PartialEq for LogPosition
impl PartialEq for LogPosition
Source§fn eq(&self, other: &LogPosition) -> bool
fn eq(&self, other: &LogPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LogPosition
impl Serialize for LogPosition
impl Copy for LogPosition
impl Eq for LogPosition
impl StructuralPartialEq for LogPosition
Auto Trait Implementations§
impl Freeze for LogPosition
impl RefUnwindSafe for LogPosition
impl Send for LogPosition
impl Sync for LogPosition
impl Unpin for LogPosition
impl UnsafeUnpin for LogPosition
impl UnwindSafe for LogPosition
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