pub enum ConsensusCommand {
ProposeOperation {
operation: Operation,
response_tx: Sender<Result<String, ConsensusError>>,
},
AddNode {
node_id: NodeId,
response_tx: Sender<Result<(), ConsensusError>>,
},
RemoveNode {
node_id: NodeId,
response_tx: Sender<Result<(), ConsensusError>>,
},
}
Expand description
Consensus commands from clients
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsensusCommand
impl !RefUnwindSafe for ConsensusCommand
impl Send for ConsensusCommand
impl Sync for ConsensusCommand
impl Unpin for ConsensusCommand
impl !UnwindSafe for ConsensusCommand
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