pub struct LogEntry {
pub term: Term,
pub index: LogIndex,
pub command: Command,
}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
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 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