Struct raftbare::LogPosition
source · pub struct LogPosition {
pub term: Term,
pub index: LogIndex,
}
Expand description
Log position (Term
and LogIndex
).
A LogPosition
uniquely identifies a LogEntry
stored within a cluster.
Fields§
§term: Term
Term of the log entry.
index: LogIndex
Index of the log entry.
Implementations§
source§impl LogPosition
impl LogPosition
sourcepub const ZERO: Self = _
pub const ZERO: Self = _
The initial log position (Term::ZERO
and LogIndex::ZERO
).
Trait Implementations§
source§impl Clone for LogPosition
impl Clone for LogPosition
source§fn clone(&self) -> LogPosition
fn clone(&self) -> LogPosition
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 LogPosition
impl Debug for LogPosition
source§impl Hash for LogPosition
impl Hash for LogPosition
source§impl PartialEq for LogPosition
impl PartialEq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)