pub struct TendermintHandle<N: Network> {
    pub messages: Sender<SignedMessage<N::ValidatorId, N::Block, <N::SignatureScheme as SignatureScheme>::Signature>>,
    pub handle: JoinHandle<()>,
}
Expand description

A handle to an asynchronous task, along with a channel to inform of it of messages received.

Fields

messages: Sender<SignedMessage<N::ValidatorId, N::Block, <N::SignatureScheme as SignatureScheme>::Signature>>

Channel to send messages received from the P2P layer.

handle: JoinHandle<()>

Handle for the asynchronous task executing the machine. The task will automatically exit when the channel is dropped.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.