pub enum EntryKind {
NoOp,
Command {
client_id: ClientId,
seq: u64,
payload: Vec<u8>,
},
Config {
config: ClusterConfig,
},
}Expand description
What a log entry does when it applies.
Variants§
NoOp
No operation. Leaders append one on election so they hold a current-term entry they may count toward commitment.
Command
A client command. The payload is the canonical command encoding produced by simraft-kv; the core treats it as opaque bytes and carries the client identity alongside for deduplication.
Fields
Config
A cluster configuration change.
Fields
§
config: ClusterConfigThe configuration this entry installs when it applies.
Trait Implementations§
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Forget for EntryKind
impl Freeze for EntryKind
impl Move for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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