pub struct TendermintHandle<N: Network> {
pub step: StepSender<N>,
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§
§step: StepSender<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.
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>where
N: Freeze,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: Freeze,
<N as Network>::SignatureScheme: Freeze,
<N as Network>::Block: Freeze,
<N as Network>::ValidatorId: Freeze,
<<N as Network>::Block as Block>::Id: Freeze,
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: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: Unpin,
<N as Network>::SignatureScheme: Unpin,
<N as Network>::Block: Unpin,
<N as Network>::ValidatorId: Unpin,
<<N as Network>::Block as Block>::Id: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signature: Unpin,
impl<N> UnsafeUnpin for TendermintHandle<N>where
N: UnsafeUnpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: UnsafeUnpin,
<N as Network>::SignatureScheme: UnsafeUnpin,
<N as Network>::Block: UnsafeUnpin,
<N as Network>::ValidatorId: UnsafeUnpin,
<<N as Network>::Block as Block>::Id: UnsafeUnpin,
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