Enum routing::Response[][src]

pub enum Response {
    GetAccountInfo {
        res: Result<AccountInfo, ClientError>,
        msg_id: MsgId,
    },
    PutIData {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    GetIData {
        res: Result<ImmutableData, ClientError>,
        msg_id: MsgId,
    },
    PutMData {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    GetMData {
        res: Result<MutableData, ClientError>,
        msg_id: MsgId,
    },
    GetMDataVersion {
        res: Result<u64, ClientError>,
        msg_id: MsgId,
    },
    GetMDataShell {
        res: Result<MutableData, ClientError>,
        msg_id: MsgId,
    },
    ListMDataEntries {
        res: Result<BTreeMap<Vec<u8>, Value>, ClientError>,
        msg_id: MsgId,
    },
    ListMDataKeys {
        res: Result<BTreeSet<Vec<u8>>, ClientError>,
        msg_id: MsgId,
    },
    ListMDataValues {
        res: Result<Vec<Value>, ClientError>,
        msg_id: MsgId,
    },
    GetMDataValue {
        res: Result<Value, ClientError>,
        msg_id: MsgId,
    },
    MutateMDataEntries {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    ListMDataPermissions {
        res: Result<BTreeMap<User, PermissionSet>, ClientError>,
        msg_id: MsgId,
    },
    ListMDataUserPermissions {
        res: Result<PermissionSet, ClientError>,
        msg_id: MsgId,
    },
    SetMDataUserPermissions {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    DelMDataUserPermissions {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    ChangeMDataOwner {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    ListAuthKeysAndVersion {
        res: Result<(BTreeSet<PublicKey>, u64), ClientError>,
        msg_id: MsgId,
    },
    InsAuthKey {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
    DelAuthKey {
        res: Result<(), ClientError>,
        msg_id: MsgId,
    },
}

Response message types

Variants

Returns a success or failure status of account information retrieval.

Fields of GetAccountInfo

Result of fetching account info from the network.

Unique message identifier

Returns a success or failure status of putting ImmutableData to the network.

Fields of PutIData

Result of putting ImmutableData to the network.

Unique message identifier

Returns a result of fetching ImmutableData from the network.

Fields of GetIData

Result of fetching ImmutableData from the network.

Unique message identifier

Returns a success or failure status of putting MutableData to the network.

Fields of PutMData

Result of putting MutableData to the network.

Unique message identifier

Returns a result of fetching MutableData from the network.

Fields of GetMData

Result of fetching MutableData from the network.

Unique message identifier

Returns a current version of MutableData stored in the network.

Fields of GetMDataVersion

Result of getting a version of MutableData

Unique message identifier

Returns the shell of MutableData (everything except the entries).

Fields of GetMDataShell

Result of getting the shell of MutableData.

Unique message identifier

Returns a complete list of entries in MutableData or an error in case of failure.

Fields of ListMDataEntries

Result of getting a list of entries in MutableData

Unique message identifier

Returns a list of keys in MutableData or an error in case of failure.

Fields of ListMDataKeys

Result of getting a list of keys in MutableData

Unique message identifier

Returns a list of values in MutableData or an error in case of failure.

Fields of ListMDataValues

Result of getting a list of values in MutableData

Unique message identifier

Returns a single entry from MutableData or an error in case of failure.

Fields of GetMDataValue

Result of getting a value from MutableData

Unique message identifier

Returns a success or failure status of mutating MutableData in the network.

Fields of MutateMDataEntries

Result of mutating an entry in MutableData

Unique message identifier

Returns a complete list of MutableData permissions stored on the network or an error in case of failure.

Fields of ListMDataPermissions

Result of getting a list of permissions in MutableData

Unique message identifier

Returns a list of permissions for a particular User in MutableData or an error in case of failure.

Fields of ListMDataUserPermissions

Result of getting a list of user permissions in MutableData

Unique message identifier

Returns a success or failure status of setting permissions for a particular User in MutableData.

Fields of SetMDataUserPermissions

Result of setting a list of user permissions in MutableData

Unique message identifier

Returns a success or failure status of deleting permissions for a particular User in MutableData.

Fields of DelMDataUserPermissions

Result of deleting a list of user permissions in MutableData

Unique message identifier

Returns a success or failure status of chaning an owner of MutableData.

Fields of ChangeMDataOwner

Result of chaning an owner of MutableData

Unique message identifier

Returns a list of authorised keys from MaidManager and the account version.

Fields of ListAuthKeysAndVersion

Result of getting a list of authorised keys and version

Unique message identifier

Returns a success or failure status of inserting an authorised key into MaidManager.

Fields of InsAuthKey

Result of inserting an authorised key

Unique message identifier

Returns a success or failure status of deleting an authorised key from MaidManager.

Fields of DelAuthKey

Result of deleting an authorised key

Unique message identifier

Methods

impl Response
[src]

The priority Crust should send this message with.

Message ID getter.

Is this response cacheable?

Trait Implementations

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Response
[src]

Formats the value using the given formatter. Read more

impl Eq for Response
[src]

impl Hash for Response
[src]

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

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

impl Ord for Response
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for Response
[src]

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

This method tests for !=.

impl PartialOrd for Response
[src]

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

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

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

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

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 Response

impl Sync for Response