Enum safe_network::messaging::system::NodeCmd [−][src]
pub enum NodeCmd {
Metadata {
cmd: DataCmd,
auth: ServiceAuth,
origin: EndUser,
},
StoreChunk {
chunk: Chunk,
auth: ServiceAuth,
origin: EndUser,
},
RecordStorageLevel {
node_id: PublicKey,
section: XorName,
level: StorageLevel,
},
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
auth: ServiceAuth
Requester pk and signature
origin: EndUser
Message source
Chunks are stored by Adults
Fields of StoreChunk
Notify Elders on nearing max capacity
Fields of RecordStorageLevel
node_id: PublicKey
Node Id
section: XorName
Section to which the message needs to be sent to. (NB: this is the section of the node id).
level: StorageLevel
The storage level reported by the node.
ReplicateChunk(Chunk)
Replicate a given chunk at an Adult (sent from elders on receipt of RepublishChunk)
Tuple Fields of ReplicateChunk
0: Chunk
RepublishChunk(Chunk)
Tells the Elders to re-publish a chunk in the data section
Tuple Fields of RepublishChunk
0: Chunk
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.
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