pub enum ConsensusRequest {
InitChain(InitChain),
BeginBlock(BeginBlock),
DeliverTx(DeliverTx),
EndBlock(EndBlock),
Commit,
}
Expand description
The consensus category of ABCI requests.
Variants§
InitChain(InitChain)
Called on genesis to initialize chain state.
BeginBlock(BeginBlock)
Signals the beginning of a new block.
Called prior to any DeliverTx
s. The header
contains the height,
timestamp, and more – it exactly matches the Tendermint block header.
DeliverTx(DeliverTx)
Execute a transaction against the application state.
EndBlock(EndBlock)
Signals the end of a block.
Called after all transactions, and prior to each Commit
.
Commit
Signals the application that it can write the queued state transitions from the block to its state.
Trait Implementations§
Source§impl Clone for ConsensusRequest
impl Clone for ConsensusRequest
Source§fn clone(&self) -> ConsensusRequest
fn clone(&self) -> ConsensusRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsensusRequest
impl Debug for ConsensusRequest
Source§impl From<ConsensusRequest> for Request
impl From<ConsensusRequest> for Request
Source§fn from(req: ConsensusRequest) -> Self
fn from(req: ConsensusRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConsensusRequest
impl PartialEq for ConsensusRequest
Source§impl TryFrom<Request> for ConsensusRequest
impl TryFrom<Request> for ConsensusRequest
impl Eq for ConsensusRequest
impl StructuralPartialEq for ConsensusRequest
Auto Trait Implementations§
impl !Freeze for ConsensusRequest
impl RefUnwindSafe for ConsensusRequest
impl Send for ConsensusRequest
impl Sync for ConsensusRequest
impl Unpin for ConsensusRequest
impl UnwindSafe for ConsensusRequest
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