Struct tendermint_machine::TendermintMachine
source · pub struct TendermintMachine<N: Network> { /* private fields */ }Expand description
A machine executing the Tendermint protocol.
Implementations
sourceimpl<N: Network + 'static> TendermintMachine<N>
impl<N: Network + 'static> TendermintMachine<N>
sourcepub fn new(
network: N,
last: (BlockNumber, u64),
proposal: N::Block
) -> TendermintHandle<N>
pub fn new(
network: N,
last: (BlockNumber, u64),
proposal: N::Block
) -> TendermintHandle<N>
Create a new Tendermint machine, for the specified proposer, from the specified block, with the specified block as the one to propose next, returning a handle for the machine.
Auto Trait Implementations
impl<N> RefUnwindSafe for TendermintMachine<N>where
N: RefUnwindSafe,
<N as Network>::Block: RefUnwindSafe,
<<N as Network>::Block as Block>::Id: RefUnwindSafe,
<<N as Network>::SignatureScheme as SignatureScheme>::Signature: RefUnwindSafe,
<N as Network>::SignatureScheme: RefUnwindSafe,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: RefUnwindSafe,
<N as Network>::ValidatorId: RefUnwindSafe,
<N as Network>::Weights: RefUnwindSafe,
impl<N> Send for TendermintMachine<N>
impl<N> Sync for TendermintMachine<N>
impl<N> Unpin for TendermintMachine<N>where
N: Unpin,
<N as Network>::Block: Unpin,
<<N as Network>::Block as Block>::Id: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signature: Unpin,
<N as Network>::SignatureScheme: Unpin,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: Unpin,
<N as Network>::ValidatorId: Unpin,
impl<N> UnwindSafe for TendermintMachine<N>where
N: UnwindSafe,
<N as Network>::Block: UnwindSafe,
<<N as Network>::Block as Block>::Id: UnwindSafe,
<<N as Network>::SignatureScheme as SignatureScheme>::Signature: UnwindSafe,
<N as Network>::SignatureScheme: UnwindSafe,
<<N as Network>::SignatureScheme as SignatureScheme>::Signer: UnwindSafe,
<N as Network>::ValidatorId: UnwindSafe,
<N as Network>::Weights: RefUnwindSafe,
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