pub enum RaftCommand {
Noop,
Read {
id: u64,
keys: Vec<String>,
},
CompareExchange {
id: u64,
keys: Vec<String>,
expected: Vec<JournalVersion>,
updates: Vec<Option<Vec<String>>>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RaftCommand
impl Clone for RaftCommand
Source§impl Debug for RaftCommand
impl Debug for RaftCommand
impl Eq for RaftCommand
Source§impl PartialEq for RaftCommand
impl PartialEq for RaftCommand
impl StructuralPartialEq for RaftCommand
Auto Trait Implementations§
impl Forget for RaftCommand
impl Freeze for RaftCommandwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<JournalVersion>: Freeze,
PhantomData<Option<Vec<String>>>: Freeze,
impl Move for RaftCommand
impl RefUnwindSafe for RaftCommand
impl Send for RaftCommandwhere
RawVecInner: Send,
impl Sync for RaftCommandwhere
RawVecInner: Sync,
impl Unpin for RaftCommand
impl UnsafeUnpin for RaftCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<JournalVersion>: UnsafeUnpin,
PhantomData<Option<Vec<String>>>: UnsafeUnpin,
impl UnwindSafe for RaftCommandwhere
RawVecInner: UnwindSafe,
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