Struct tendermint_machine::TendermintHandle
source · pub struct TendermintHandle<N: Network> {
pub synced_block: SyncedBlockSender<N>,
pub synced_block_result: SyncedBlockResultReceiver,
pub messages: MessageSender<N>,
pub machine: TendermintMachine<N>,
}
Expand description
A Tendermint machine and its channel to receive messages from the gossip layer over.
Fields§
§synced_block: SyncedBlockSender<N>
Channel to trigger the machine to move to the next block. Takes in the the previous block’s commit, along with the new proposal.
synced_block_result: SyncedBlockResultReceiver
A channel to communicate the result of a synced_block message.
messages: MessageSender<N>
Channel to send messages received from the P2P layer.
machine: TendermintMachine<N>
Tendermint machine to be run on an asynchronous task.
Auto Trait Implementations§
impl<N> Freeze for TendermintHandle<N>
impl<N> !RefUnwindSafe for TendermintHandle<N>
impl<N> Send for TendermintHandle<N>
impl<N> Sync for TendermintHandle<N>
impl<N> Unpin for TendermintHandle<N>where
<N as Network>::Db: Unpin,
N: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: Unpin,
<N as Network>::SignatureScheme: Unpin,
<N as Network>::ValidatorId: Unpin,
<N as Network>::Block: Unpin,
<<N as Network>::Block as Block>::Id: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signature: Unpin,
impl<N> !UnwindSafe for TendermintHandle<N>
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