Struct raft::raw_node::Peer[][src]

pub struct Peer {
    pub id: u64,
    pub context: Option<Vec<u8>>,
}

Represents a Peer node in the cluster.

Fields

The ID of the peer.

If there is context associated with the peer (like connection information), it can be serialized and stored here.

Trait Implementations

impl Debug for Peer
[src]

Formats the value using the given formatter. Read more

impl Default for Peer
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Peer

impl Sync for Peer