pub struct LogPosition {
pub term: u64,
pub index: u64,
}Expand description
A position in one commit log. term is zero for the standalone log.
Fields§
§term: u64Consensus term; zero in standalone mode.
index: u64Monotonic log index (the standalone epoch).
Implementations§
Source§impl LogPosition
impl LogPosition
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 moreimpl Copy for LogPosition
Source§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
impl Eq for LogPosition
Source§impl Hash for LogPosition
impl Hash for LogPosition
Source§impl Ord for LogPosition
impl Ord for LogPosition
Source§fn cmp(&self, other: &LogPosition) -> Ordering
fn cmp(&self, other: &LogPosition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LogPosition
impl PartialEq for LogPosition
Source§impl PartialOrd for LogPosition
impl PartialOrd for LogPosition
Source§impl Serialize for LogPosition
impl Serialize 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