Enum sn_messaging::section_info::Message [−][src]
pub enum Message { GetSectionQuery(XorName), RegisterEndUserCmd { end_user: PublicKey, socketaddr_sig: Signature, }, RegisterEndUserError(Error), GetSectionResponse(GetSectionResponse), SectionInfoUpdate(ErrorResponse), }
Messages for exchanging network info, specifically on a target section for a msg.
Variants
GetSectionQuery(XorName)
Message to request information about the section that matches the given name.
An EndUser that wants to interact with the network, would send this cmd to the elders received in the GetSectionResponse.
Show fields
RegisterEndUserError(Error)
If the sig over the sender socketaddr cannot be verified by the provided public key.
GetSectionResponse(GetSectionResponse)
Response to GetSectionQuery
.
SectionInfoUpdate(ErrorResponse)
Updated info related to section
Implementations
impl Message
[src]
impl Message
[src]pub fn from(bytes: Bytes) -> Result<Self>
[src]
Convenience function to deserialize a ‘Query’ from bytes received over the wire. It returns an error if the bytes don’t correspond to a network info query.
pub fn serialize(&self) -> Result<Bytes>
[src]
serialize this Query into bytes ready to be sent over the wire.
Trait Implementations
impl<'de> Deserialize<'de> for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Message
[src]
impl StructuralPartialEq for Message
[src]Auto Trait Implementations
impl RefUnwindSafe for Message
impl RefUnwindSafe for Message
impl UnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,