Enum sn_messaging::node::Variant [−][src]
pub enum Variant {}Show variants
SectionKnowledge { src_info: (SectionSigned<SectionAuthorityProvider>, SecuredLinkedList), msg: Option<Box<RoutingMsg>>, }, UserMessage(Vec<u8>), Sync { section: Section, network: Network, }, Relocate(RelocateDetails), RelocatePromise(RelocatePromise), JoinRequest(Box<JoinRequest>), JoinResponse(Box<JoinResponse>), JoinAsRelocatedRequest(Box<JoinAsRelocatedRequest>), JoinAsRelocatedResponse(Box<JoinAsRelocatedResponse>), BouncedUntrustedMessage { msg: Box<RoutingMsg>, dest_info: DestInfo, }, DkgStart { dkg_key: DkgKey, elder_candidates: ElderCandidates, }, DkgMessage { dkg_key: DkgKey, message: DkgMessage, }, DkgFailureObservation { dkg_key: DkgKey, signed: DkgFailureSigned, non_participants: BTreeSet<XorName>, }, DkgFailureAgreement(DkgFailureSignedSet), Propose { content: Proposal, signed_share: SignedShare, }, StartConnectivityTest(XorName), SectionKnowledgeQuery { last_known_key: Option<BlsPublicKey>, msg: Box<RoutingMsg>, },
Expand description
Message variant
Variants
Inform other sections about our section or vice-versa.
Show fields
Fields of SectionKnowledge
src_info: (SectionSigned<SectionAuthorityProvider>, SecuredLinkedList)
SectionAuthorityProvider
and SecuredLinkedList
of the sender’s section, with the proof chain.
msg: Option<Box<RoutingMsg>>
Message
User-facing message
Message sent to all members to update them about the state of our section.
Relocate(RelocateDetails)
Send from a section to the node to be immediately relocated.
RelocatePromise(RelocatePromise)
Send:
- from a section to a current elder to be relocated after they are demoted.
- from the node to be relocated back to its section after it was demoted.
JoinRequest(Box<JoinRequest>)
Sent from a bootstrapping peer to the section requesting to join as a new member
JoinResponse(Box<JoinResponse>)
Response to a JoinRequest
JoinAsRelocatedRequest(Box<JoinAsRelocatedRequest>)
Sent from a peer to the section requesting to join as relocated from another section
JoinAsRelocatedResponse(Box<JoinAsRelocatedResponse>)
Response to a JoinAsRelocatedRequest
Sent from a node that can’t establish the trust of the contained message to its original source in order for them to provide new proof that the node would trust.
Show fields
Fields of BouncedUntrustedMessage
msg: Box<RoutingMsg>
dest_info: DestInfo
Sent to the new elder candidates to start the DKG process.
Show fields
Fields of DkgStart
dkg_key: DkgKey
The identifier of the DKG session to start.
elder_candidates: ElderCandidates
The DKG particpants.
Message exchanged for DKG process.
Show fields
Fields of DkgMessage
dkg_key: DkgKey
The identifier of the DKG session this message is for.
message: DkgMessage
The DKG message.
Broadcasted to the other DKG participants when a DKG failure is observed.
Show fields
Fields of DkgFailureObservation
DkgFailureAgreement(DkgFailureSignedSet)
Sent to the current elders by the DKG participants when at least majority of them observe a DKG failure.
Message containing a single Proposal
to be aggregated in the proposal aggregator.
Show fields
Fields of Propose
content: Proposal
StartConnectivityTest(XorName)
Message that notifies a section to test the connectivity to a node
Message sent by a node to indicate it received a message from a node which was ahead in knowledge.
A reply is expected with a SectionKnowledge
message.
Show fields
Fields of SectionKnowledgeQuery
last_known_key: Option<BlsPublicKey>
msg: Box<RoutingMsg>
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 Variant
impl UnwindSafe for Variant
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