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: MessageId
Message ID.
src: SrcAuthority
Source 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: DstLocation
Destination location.
aggregation: Aggregation
The aggregation scheme to be used.
variant: Variant
The body of the message.
section_pk: BlsPublicKey
Section 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 RoutingMsg
impl Send for RoutingMsg
impl Sync for RoutingMsg
impl Unpin for RoutingMsg
impl UnwindSafe for RoutingMsg
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