Enum safe_network::messaging::node::NodeSystemCmd [−][src]
pub enum NodeSystemCmd { RegisterWallet(PublicKey), StorageFull { node_id: PublicKey, section: XorName, }, ReplicateChunk(Chunk), RepublishChunk(Chunk), ProposeRewardPayout(RewardProposal), AccumulateRewardPayout(RewardAccumulation), ReceiveExistingData { node_rewards: BTreeMap<XorName, (NodeAge, PublicKey)>, user_wallets: BTreeMap<PublicKey, ActorHistory>, metadata: DataExchange, }, }
Expand description
Cmds related to the running of a node.
Variants
RegisterWallet(PublicKey)
Register a wallet for reward payouts.
Notify Elders on nearing max capacity
Show fields
ReplicateChunk(Chunk)
Replicate a given chunk at an Adult
RepublishChunk(Chunk)
Tells the Elders to re-publish a chunk in the data section
ProposeRewardPayout(RewardProposal)
When new section key, all propose a reward payout.
AccumulateRewardPayout(RewardAccumulation)
When proposal has been agreed, they all accumulate the reward payout.
Sent to all promoted nodes (also sibling if any) after a completed transition to a new constellation.
Show fields
Fields of ReceiveExistingData
node_rewards: BTreeMap<XorName, (NodeAge, PublicKey)>
Age and reward wallets of registered nodes, keyed by node name.
user_wallets: BTreeMap<PublicKey, ActorHistory>
Transfer histories
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NodeSystemCmd
impl Send for NodeSystemCmd
impl Sync for NodeSystemCmd
impl Unpin for NodeSystemCmd
impl UnwindSafe for NodeSystemCmd
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V