Enum simple_raft::message::RaftMessageDestination[][src]

pub enum RaftMessageDestination<NodeId> {
    Broadcast,
    To(NodeId),
}
Expand description

The destination for a SendableRaftMessage.

Variants

Broadcast

The associated message should be sent to all known peers.

To(NodeId)

The associated message should be sent to one particular peer.

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

Performs the conversion.

Performs the conversion.

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.