Struct raft_consensus::shared::SharedConsensus[][src]

pub struct SharedConsensus<L, M, H> { /* fields omitted */ }

Convenience wrapper for multithreaded handling of consensus packages Based on standard Arc<Mutex<_>> approach

Methods

impl<L, M, H> SharedConsensus<L, M, H> where
    L: Log,
    M: StateMachine,
    H: ConsensusHandler
[src]

Calls initial actions which should be executed upon startup.

Applies a peer message to the consensus state machine.

Applies a client message to the consensus state machine.

Triggers a timeout for the peer.

Triggers a heartbeat timeout for the peer.

Trait Implementations

impl<L: Debug, M: Debug, H: Debug> Debug for SharedConsensus<L, M, H>
[src]

Formats the value using the given formatter. Read more

impl<L: Clone, M: Clone, H: Clone> Clone for SharedConsensus<L, M, H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<L, M, H> Send for SharedConsensus<L, M, H> where
    H: Send,
    L: Send,
    M: Send

impl<L, M, H> Sync for SharedConsensus<L, M, H> where
    H: Send,
    L: Send,
    M: Send