Struct sn_messaging::node::RoutingMsg [−][src]
pub struct RoutingMsg {
pub id: MessageId,
pub src: SrcAuthority,
pub dst: DstLocation,
pub aggregation: Aggregation,
pub variant: Variant,
pub section_pk: BlsPublicKey,
}Expand description
Routing message sent over the network.
Fields
id: MessageIdMessage ID.
src: SrcAuthoritySource authority. Messages do not need to sign this field as it is all verifiable (i.e. if the sig validates agains the public key and we know the pub key then we are good. If the proof is not recognised we ask for a longer chain that can be recognised). Therefore we don’t need to sign this field.
dst: DstLocationDestination location.
aggregation: AggregationThe aggregation scheme to be used.
variant: VariantThe body of the message.
section_pk: BlsPublicKeySection key of the sender.
Implementations
Convenience function to deserialize a ‘RoutingMsg’ from bytes received over the wire. It returns an error if the bytes don’t correspond to a node message.
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
Auto Trait Implementations
impl RefUnwindSafe for RoutingMsgimpl Send for RoutingMsgimpl Sync for RoutingMsgimpl Unpin for RoutingMsgimpl UnwindSafe for RoutingMsgBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V