Enum safe_network::messaging::system::SystemMsg [−][src]
pub enum SystemMsg {
Show 25 variants
AntiEntropyRetry {
section_auth: SectionAuthorityProvider,
section_signed: KeyedSig,
proof_chain: SecuredLinkedList,
bounced_msg: Bytes,
},
AntiEntropyRedirect {
section_auth: SectionAuthorityProvider,
section_signed: KeyedSig,
section_chain: SecuredLinkedList,
bounced_msg: Bytes,
},
AntiEntropyUpdate {
section_auth: SectionAuthorityProvider,
section_signed: KeyedSig,
proof_chain: SecuredLinkedList,
members: Option<BTreeSet<SectionAuth<NodeState>>>,
},
AntiEntropyProbe(XorName),
BackPressure(LoadReport),
Relocate(RelocateDetails),
RelocatePromise(RelocatePromise),
JoinRequest(Box<JoinRequest>),
JoinResponse(Box<JoinResponse>),
JoinAsRelocatedRequest(Box<JoinAsRelocatedRequest>),
JoinAsRelocatedResponse(Box<JoinAsRelocatedResponse>),
DkgStart {
session_id: DkgSessionId,
prefix: Prefix,
elders: BTreeMap<XorName, SocketAddr>,
},
DkgSessionUnknown {
session_id: DkgSessionId,
message: DkgMessage,
},
DkgSessionInfo {
session_id: DkgSessionId,
prefix: Prefix,
elders: BTreeMap<XorName, SocketAddr>,
section_auth: AuthorityProof<SectionAuthProof>,
message_cache: Vec<DkgMessage>,
message: DkgMessage,
},
DkgMessage {
session_id: DkgSessionId,
message: DkgMessage,
},
DkgNotReady {
session_id: DkgSessionId,
message: DkgMessage,
},
DkgRetry {
message_history: Vec<DkgMessage>,
session_id: DkgSessionId,
message: DkgMessage,
},
DkgFailureObservation {
session_id: DkgSessionId,
sig: DkgFailureSig,
failed_participants: BTreeSet<XorName>,
},
DkgFailureAgreement(DkgFailureSigSet),
Propose {
proposal: Proposal,
sig_share: SigShare,
},
StartConnectivityTest(XorName),
NodeCmd(NodeCmd),
NodeQuery(NodeQuery),
NodeQueryResponse {
response: NodeQueryResponse,
correlation_id: MessageId,
user: EndUser,
},
NodeMsgError {
error: Error,
correlation_id: MessageId,
},
}
Expand description
Message sent over the among nodes
Variants
AntiEntropyRetry
Fields
section_auth: SectionAuthorityProvider
Current SectionAuthorityProvider
of the sender’s section.
section_signed: KeyedSig
Sender’s section signature over the SectionAuthorityProvider
.
proof_chain: SecuredLinkedList
Sender’s section chain truncated from the dest section key found in the bounced_msg
.
bounced_msg: Bytes
Message bounced due to outdated destination section information.
Message sent to a peer when a message with outdated section information was received, attaching the bounced message so the peer can resend it with up to date destination information.
AntiEntropyRedirect
Fields
section_auth: SectionAuthorityProvider
Current SectionAuthorityProvider
of a closest section.
section_signed: KeyedSig
Section signature over the SectionAuthorityProvider
of the closest
section the bounced message shall be resent to.
section_chain: SecuredLinkedList
Section chain (from genesis key) for the closest section.
bounced_msg: Bytes
Message bounced that shall be resent by the peer.
Message sent to a peer when a message needs to be sent to a different and/or closest section, attaching the bounced message so the peer can resend it to the correct section with up to date destination information.
AntiEntropyUpdate
Fields
section_auth: SectionAuthorityProvider
Current SectionAuthorityProvider
of our section.
section_signed: KeyedSig
Section signature over the SectionAuthorityProvider
of our
section the bounced message shall be resent to.
proof_chain: SecuredLinkedList
Our section chain truncated from the triggering msg’s dst section_key (or genesis key for full proof)
members: Option<BTreeSet<SectionAuth<NodeState>>>
Optional section members if we’re updating our own section adults
Message to update a section when they bounced a message as untrusted back at us. That section must be behind our current knowledge.
AntiEntropyProbe(XorName)
Tuple Fields
0: XorName
Probes the network by sending a message to a random dst triggering an AE flow.
BackPressure(LoadReport)
Tuple Fields
0: LoadReport
Sent when a msg-consuming node is surpassing certain thresholds for
cpu load. It tells msg-producing nodes to back off a bit, proportional
to the node’s cpu load, as given by the included LoadReport
.
Relocate(RelocateDetails)
Tuple Fields
Send from a section to the node to be immediately relocated.
RelocatePromise(RelocatePromise)
Tuple Fields
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>)
Tuple Fields
0: Box<JoinRequest>
Sent from a bootstrapping peer to the section requesting to join as a new member
JoinResponse(Box<JoinResponse>)
Tuple Fields
0: Box<JoinResponse>
Response to a JoinRequest
JoinAsRelocatedRequest(Box<JoinAsRelocatedRequest>)
Tuple Fields
Sent from a peer to the section requesting to join as relocated from another section
JoinAsRelocatedResponse(Box<JoinAsRelocatedResponse>)
Tuple Fields
Response to a JoinAsRelocatedRequest
DkgStart
Fields
session_id: DkgSessionId
The identifier of the DKG session to start.
prefix: Prefix
The section prefix. It matches all the members’ names.
elders: BTreeMap<XorName, SocketAddr>
The section’s complete set of elders as a map from their name to their socket address.
Sent to the new elder candidates to start the DKG process.
DkgSessionUnknown
Fields
session_id: DkgSessionId
The identifier of the DKG session this message is for.
message: DkgMessage
DKG message that came in
Message sent when a DKG session has not started
DkgSessionInfo
Fields
session_id: DkgSessionId
The identifier of the DKG session to start.
prefix: Prefix
The section prefix. It matches all the members’ names.
elders: BTreeMap<XorName, SocketAddr>
The section’s complete set of elders as a map from their name to their socket address.
section_auth: AuthorityProof<SectionAuthProof>
Section authority for the DKG start message
message_cache: Vec<DkgMessage>
Messages processed in the session so far
message: DkgMessage
The original DKG message
DKG session info along with section authority
DkgMessage
Fields
session_id: DkgSessionId
The identifier of the DKG session this message is for.
message: DkgMessage
The DKG message.
Message exchanged for DKG process.
DkgNotReady
Fields
session_id: DkgSessionId
The identifier of the DKG session this message is for.
message: DkgMessage
The sent DKG message.
Message signalling that the node is not ready for the DKG message yet
DkgRetry
Fields
message_history: Vec<DkgMessage>
History of messages received at the sender’s end
session_id: DkgSessionId
The identifier of the DKG session this message is for.
message: DkgMessage
The originally sent DKG message.
Message containing a history of received DKG messages so other nodes can catch-up
DkgFailureObservation
Broadcast to the other DKG participants when a DKG failure is observed.
DkgFailureAgreement(DkgFailureSigSet)
Tuple Fields
Sent to the current elders by the DKG participants when at least majority of them observe a DKG failure.
Propose
Message containing a single Proposal
to be aggregated in the proposal aggregator.
StartConnectivityTest(XorName)
Tuple Fields
0: XorName
Message that notifies a section to test the connectivity to a node
NodeCmd(NodeCmd)
Tuple Fields
0: NodeCmd
Cmds only sent internally in the network.
NodeQuery(NodeQuery)
Tuple Fields
0: NodeQuery
Queries is a read-only operation.
NodeQueryResponse
Fields
response: NodeQueryResponse
QueryResponse.
correlation_id: MessageId
ID of causing query.
user: EndUser
TEMP: Add user here as part of return flow. Remove this as we have chunk routing etc
The response to a query, containing the query result.
NodeMsgError
The returned error, from any msg handling on recipient node.
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 SystemMsg
impl UnwindSafe for SystemMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
Set the foreground color generically Read more
fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
Set the background color generically. Read more
fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
Change the foreground color to black
fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
Change the foreground color to black
fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
Change the foreground color to red
fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
Change the foreground color to red
fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
Change the foreground color to green
fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
Change the foreground color to green
fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
Change the foreground color to yellow
fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
Change the foreground color to yellow
fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
Change the foreground color to blue
fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
Change the foreground color to blue
fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to purple
fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the foreground color to purple
fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
Change the foreground color to cyan
fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
Change the foreground color to cyan
fn white(&'a self) -> FgColorDisplay<'a, White, Self>
fn white(&'a self) -> FgColorDisplay<'a, White, Self>
Change the foreground color to white
fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
Change the foreground color to white
fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
fn bold(&'a self) -> BoldDisplay<'a, Self>
fn bold(&'a self) -> BoldDisplay<'a, Self>
Make the text bold
fn dimmed(&'a self) -> DimDisplay<'a, Self>
fn dimmed(&'a self) -> DimDisplay<'a, Self>
Make the text dim
fn italic(&'a self) -> ItalicDisplay<'a, Self>
fn italic(&'a self) -> ItalicDisplay<'a, Self>
Make the text italicized
fn underline(&'a self) -> UnderlineDisplay<'a, Self>
fn underline(&'a self) -> UnderlineDisplay<'a, Self>
Make the text italicized
fn blink(&'a self) -> BlinkDisplay<'a, Self>
fn blink(&'a self) -> BlinkDisplay<'a, Self>
Make the text blink
fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
Make the text blink (but fast!)
fn reversed(&'a self) -> ReversedDisplay<'a, Self>
fn reversed(&'a self) -> ReversedDisplay<'a, Self>
Swap the foreground and background colors
Hide the text
fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
Cross out the text
fn color<Color>(&'a self, color: Color) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
fn color<Color>(&'a self, color: Color) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read more
fn on_color<Color>(&'a self, color: Color) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
fn on_color<Color>(&'a self, color: Color) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more
Sets the foreground color to an RGB value.
fn on_truecolor(
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
fn on_truecolor(
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
Sets the background color to an RGB value.
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