Enum sn_messaging::infrastructure::Message[][src]

pub enum Message {
    GetSectionRequest(XorName),
    GetSectionResponse(GetSectionResponse),
    InfrastructureUpdate(ErrorResponse),
}

Message to query the network infrastructure.

Variants

GetSectionRequest(XorName)

Message to request information about the section that matches the given name.

GetSectionResponse(GetSectionResponse)

Response to GetSectionRequest.

InfrastructureUpdate(ErrorResponse)

Updated info related to section infrastructure

Implementations

impl Message[src]

pub fn from(bytes: Bytes) -> Result<Self>[src]

Convinience function to deserialize a 'Query' from bytes received over the wire. It returns an error if the bytes don't correspond to an infrastructure query.

pub fn serialize(&self) -> Result<Bytes>[src]

serialize this Query into bytes ready to be sent over the wire.

Trait Implementations

impl Debug for Message[src]

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

impl PartialEq<Message> for Message[src]

impl Serialize for Message[src]

impl StructuralPartialEq for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

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>,