Struct tendermint_machine::TendermintHandle
source · 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
impl<N> !RefUnwindSafe for TendermintHandle<N>
impl<N> Send for TendermintHandle<N>
impl<N> Sync for TendermintHandle<N>
impl<N> Unpin for TendermintHandle<N>
impl<N> !UnwindSafe for TendermintHandle<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more