Struct raft_consensus::state_machine::channel::ChannelStateMachine[][src]

pub struct ChannelStateMachine { /* fields omitted */ }

A state machine that simply redirects all commands to a channel.

This state machine is chiefly meant for testing.

Methods

impl ChannelStateMachine
[src]

Trait Implementations

impl StateMachine for ChannelStateMachine
[src]

Applies a command to the state machine. Returns an application-specific result value. Read more

Queries a value of the state machine. Does not go through the durable log, or mutate the state machine. Returns an application-specific result value. Read more

Take a snapshot of the state machine.

Restore a snapshot of the state machine.

impl Debug for ChannelStateMachine
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations