pub enum NodeCmd {
Metadata {
cmd: DataCmd,
auth: ServiceAuth,
origin: EndUser,
},
StoreData {
data: ReplicatedData,
origin: EndUser,
},
RecordStorageLevel {
node_id: PublicKey,
section: XorName,
level: StorageLevel,
},
ReplicateData(ReplicatedData),
RepublishData(ReplicatedData),
ReceiveMetadata {
metadata: DataExchange,
},
}
Expand description
Command message sent among nodes
Variants
Metadata
Fields
cmd: DataCmd
The contained command
auth: ServiceAuth
Requester pk and signature
origin: EndUser
Message source
Metadata is handled by Elders
StoreData
Data is stored by Adults
RecordStorageLevel
Fields
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.
Notify Elders on nearing max capacity
ReplicateData(ReplicatedData)
Replicate a given chunk at an Adult (sent from elders on receipt of RepublishData)
RepublishData(ReplicatedData)
Tells the Elders to re-publish a chunk in the data section
ReceiveMetadata
Fields
metadata: DataExchange
Metadata
Sent to all promoted nodes (also sibling if any) after a completed transition to a new constellation.
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