[][src]Enum sn_data_types::HandshakeResponse

pub enum HandshakeResponse {
    Rebootstrap(Vec<(XorName, SocketAddr)>),
    Join(Vec<(XorName, SocketAddr)>),
    InvalidSection,
}

Handshake responses sent from nodes to clients.

Variants

Rebootstrap(Vec<(XorName, SocketAddr)>)

Sent by nodes when a client should attempt to connect to the section that's closest to its destination (section managing the client's account).

Sent by nodes when a client reaches its destination section.

InvalidSection

Sent by nodes as a response to an invalid HandshakeRequest::Join (when a client attempts to join a wrong section).

Trait Implementations

impl<'de> Deserialize<'de> for HandshakeResponse[src]

impl Serialize for HandshakeResponse[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,