Enum sn_messaging::section_info::Message [−][src]
pub enum Message { GetSectionQuery { public_key: PublicKey, is_node: bool, }, GetSectionResponse(GetSectionResponse), SectionInfoUpdate(ErrorResponse), }
Expand description
Messages for exchanging network info, specifically on a target section for a msg.
Variants
Message to request information about the section that matches the given name.
GetSectionResponse(GetSectionResponse)
Response to GetSectionQuery
.
SectionInfoUpdate(ErrorResponse)
Updated info related to section
Implementations
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.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V