Enum routing::Request [] [src]

pub enum Request {
    Refresh(Vec<u8>, MsgId),
    GetAccountInfo(MsgId),
    PutIData {
        data: ImmutableData,
        msg_id: MsgId,
    },
    GetIData {
        name: XorName,
        msg_id: MsgId,
    },
    GetMData {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    PutMData {
        data: MutableData,
        msg_id: MsgId,
        requester: PublicKey,
    },
    GetMDataVersion {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    GetMDataShell {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    ListMDataEntries {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    ListMDataKeys {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    ListMDataValues {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    GetMDataValue {
        name: XorName,
        tag: u64,
        key: Vec<u8>,
        msg_id: MsgId,
    },
    MutateMDataEntries {
        name: XorName,
        tag: u64,
        actions: BTreeMap<Vec<u8>, EntryAction>,
        msg_id: MsgId,
        requester: PublicKey,
    },
    ListMDataPermissions {
        name: XorName,
        tag: u64,
        msg_id: MsgId,
    },
    ListMDataUserPermissions {
        name: XorName,
        tag: u64,
        user: User,
        msg_id: MsgId,
    },
    SetMDataUserPermissions {
        name: XorName,
        tag: u64,
        user: User,
        permissions: PermissionSet,
        version: u64,
        msg_id: MsgId,
        requester: PublicKey,
    },
    DelMDataUserPermissions {
        name: XorName,
        tag: u64,
        user: User,
        version: u64,
        msg_id: MsgId,
        requester: PublicKey,
    },
    ChangeMDataOwner {
        name: XorName,
        tag: u64,
        new_owners: BTreeSet<PublicKey>,
        version: u64,
        msg_id: MsgId,
    },
    ListAuthKeysAndVersion(MsgId),
    InsAuthKey {
        key: PublicKey,
        version: u64,
        msg_id: MsgId,
    },
    DelAuthKey {
        key: PublicKey,
        version: u64,
        msg_id: MsgId,
    },
}

Request message types

Variants

Represents a refresh message sent between vaults. Vec is the message content.

Gets MAID account information.

Puts ImmutableData to the network.

Fields of PutIData

ImmutableData to be stored

Unique message identifier

Fetches ImmutableData from the network by the given name.

Fields of GetIData

Network identifier of ImmutableData

Unique message identifier

Fetches whole MutableData from the network. Note: responses to this request are unlikely to accumulate during churn.

Fields of GetMData

Network identifier of MutableData

Type tag

Unique message identifier

Creates a new MutableData in the network.

Fields of PutMData

MutableData to be stored

Unique message identifier

Requester public key

Fetches a latest version number.

Fields of GetMDataVersion

Network identifier of MutableData

Type tag

Unique message identifier

Fetches the shell (everthing except the entries).

Fields of GetMDataShell

Network identifier of MutableData

Type tag

Unique message identifier

Fetches a list of entries (keys + values). Note: responses to this request are unlikely to accumulate during churn.

Fields of ListMDataEntries

Network identifier of MutableData

Type tag

Unique message identifier

Fetches a list of keys in MutableData. Note: responses to this request are unlikely to accumulate during churn.

Fields of ListMDataKeys

Network identifier of MutableData

Type tag

Unique message identifier

Fetches a list of values in MutableData. Note: responses to this request are unlikely to accumulate during churn.

Fields of ListMDataValues

Network identifier of MutableData

Type tag

Unique message identifier

Fetches a single value from MutableData

Fields of GetMDataValue

Network identifier of MutableData

Type tag

Key of an entry to be fetched

Unique message identifier

Updates MutableData entries in bulk.

Fields of MutateMDataEntries

Network identifier of MutableData

Type tag

A list of mutations (inserts, updates, or deletes) to be performed on MutableData in bulk.

Unique message identifier

Requester public key

Fetches a complete list of permissions.

Fields of ListMDataPermissions

Network identifier of MutableData

Type tag

Unique message identifier

Fetches a list of permissions for a particular User.

Fields of ListMDataUserPermissions

Network identifier of MutableData

Type tag

A user identifier used to fetch permissions

Unique message identifier

Updates or inserts a list of permissions for a particular User in the given MutableData.

Fields of SetMDataUserPermissions

Network identifier of MutableData

Type tag

A user identifier used to set permissions

Permissions to be set for a user

Incremented version of MutableData

Unique message identifier

Requester public key

Deletes a list of permissions for a particular User in the given MutableData.

Fields of DelMDataUserPermissions

Network identifier of MutableData

Type tag

A user identifier used to delete permissions

Incremented version of MutableData

Unique message identifier

Requester public key

Changes an owner of the given MutableData. Only the current owner can perform this action.

Fields of ChangeMDataOwner

Network identifier of MutableData

Type tag

A list of new owners

Incremented version of MutableData

Unique message identifier

Lists authorised keys and version stored in MaidManager.

Inserts an autorised key (for an app, user, etc.) to MaidManager.

Fields of InsAuthKey

Authorised key to be inserted

Incremented version

Unique message identifier

Deletes an authorised key from MaidManager.

Fields of DelAuthKey

Authorised key to be deleted

Incremented version

Unique message identifier

Methods

impl Request
[src]

[src]

Message ID getter.

[src]

Is the response corresponding to this request cacheable?

Trait Implementations

impl Clone for Request
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Request
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Request
[src]

impl Hash for Request
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Request
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for Request
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialOrd for Request
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for Request

impl Sync for Request