Enum safe_network::messaging::section_info::SectionInfoMsg [−][src]
pub enum SectionInfoMsg { GetSectionQuery(PublicKey), GetSectionResponse(GetSectionResponse), }
Expand description
Messages for exchanging network info, specifically on a target section for a msg.
Variants
GetSectionQuery(PublicKey)
SectionInfoMsg to request information about the section that matches the given name.
GetSectionResponse(GetSectionResponse)
Response to GetSectionQuery
.
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.
Serialize this Query into bytes ready to be sent over the wire.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SectionInfoMsg
impl Send for SectionInfoMsg
impl Sync for SectionInfoMsg
impl Unpin for SectionInfoMsg
impl UnwindSafe for SectionInfoMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more