Enum safe_network::messaging::node::NodeCmd [−][src]
pub enum NodeCmd { Metadata { cmd: DataCmd, data_signed: DataSigned, origin: EndUser, }, Chunks { cmd: ChunkWrite, data_signed: DataSigned, origin: EndUser, }, StorageFull { node_id: PublicKey, section: XorName, }, ReplicateChunk(Chunk), RepublishChunk(Chunk), ReceiveExistingData { metadata: DataExchange, }, }
Expand description
Command message sent among nodes
Variants
Metadata is handled by Elders
Fields of Metadata
cmd: DataCmd
The contianed command
data_signed: DataSigned
Requester pk and signature
origin: EndUser
Message source
Chunks are handled by Adults
Fields of Chunks
cmd: ChunkWrite
The contianed command
data_signed: DataSigned
Requester pk and signature
origin: EndUser
Message source
Notify Elders on nearing max capacity
Fields of StorageFull
ReplicateChunk(Chunk)
Replicate a given chunk at an Adult (sent from elders on receipt of RepublishChunk)
RepublishChunk(Chunk)
Tells the Elders to re-publish a chunk in the data section
Sent to all promoted nodes (also sibling if any) after a completed transition to a new constellation.
Fields of ReceiveExistingData
metadata: DataExchange
Metadata
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 NodeCmd
impl UnwindSafe for NodeCmd
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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