Enum sn_messaging::client::NodeSystemCmd[][src]

pub enum NodeSystemCmd {
    RegisterWallet(PublicKey),
    StorageFull {
        node_id: PublicKey,
        section: XorName,
    },
    ReplicateChunk {
        new_holder: XorName,
        address: BlobAddress,
        current_holders: BTreeSet<XorName>,
    },
    ProposeRewardPayout(RewardProposal),
    AccumulateRewardPayout(RewardAccumulation),
    ReceiveExistingData {
        node_rewards: BTreeMap<XorName, (NodeAge, PublicKey)>,
        user_wallets: BTreeMap<PublicKey, ActorHistory>,
    },
}

Cmds related to the running of a node.

Variants

RegisterWallet(PublicKey)

Register a wallet for reward payouts.

StorageFull

Notify Elders on nearing max capacity

Fields of StorageFull

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).

ReplicateChunk

Replicate a given chunk at another Adult

Fields of ReplicateChunk

new_holder: XorName

New holders’s name.

address: BlobAddress

Address of the blob to be replicated.

current_holders: BTreeSet<XorName>

Current holders.

ProposeRewardPayout(RewardProposal)

When new section key, all propose a reward payout.

AccumulateRewardPayout(RewardAccumulation)

When proposal has been agreed, they all accumulate the reward payout.

ReceiveExistingData

Sent to all promoted nodes (also sibling if any) after a completed transition to a new constellation.

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

Trait Implementations

impl Clone for NodeSystemCmd[src]

impl Debug for NodeSystemCmd[src]

impl<'de> Deserialize<'de> for NodeSystemCmd[src]

impl Eq for NodeSystemCmd[src]

impl PartialEq<NodeSystemCmd> for NodeSystemCmd[src]

impl Serialize for NodeSystemCmd[src]

impl StructuralEq for NodeSystemCmd[src]

impl StructuralPartialEq for NodeSystemCmd[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,