pub struct LogEntry {
pub term: Term,
pub index: LogIndex,
pub command: Command,
pub fencing_token: u64,
}Expand description
A log entry in the Raft log
Fields§
§term: TermThe term when this entry was created
index: LogIndexThe index of this entry in the log (1-indexed)
command: CommandThe command to be applied to the state machine
fencing_token: u64Packed fencing token (see crate::types::FencingToken).
Serialised as a little-endian u64 in WAL v2 entries.
WAL v1 entries do not carry a token; zero is used as a sentinel.
Implementations§
Trait Implementations§
impl Eq for LogEntry
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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