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

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

Represents a Peer node in the cluster.

Fields

id: u64

The ID of the peer.

context: Option<Vec<u8>>

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

Trait Implementations

impl Default for Peer[src]

impl Debug for Peer[src]

Auto Trait Implementations

impl Unpin for Peer

impl Sync for Peer

impl Send for Peer

impl UnwindSafe for Peer

impl RefUnwindSafe for Peer

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,