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
GetAccountInfo
Returns a success or failure status of account information retrieval.
Fields of GetAccountInfo
res: Result<AccountInfo, ClientError> | Result of fetching account info from the network. |
msg_id: MsgId | Unique message identifier |
PutIData
Returns a success or failure status of putting ImmutableData to the network.
Fields of PutIData
res: Result<(), ClientError> | Result of putting ImmutableData to the network. |
msg_id: MsgId | Unique message identifier |
GetIData
Returns a result of fetching ImmutableData from the network.
Fields of GetIData
res: Result<ImmutableData, ClientError> | Result of fetching ImmutableData from the network. |
msg_id: MsgId | Unique message identifier |
PutMData
Returns a success or failure status of putting MutableData to the network.
Fields of PutMData
res: Result<(), ClientError> | Result of putting MutableData to the network. |
msg_id: MsgId | Unique message identifier |
GetMData
Returns a result of fetching MutableData from the network.
Fields of GetMData
res: Result<MutableData, ClientError> | Result of fetching MutableData from the network. |
msg_id: MsgId | Unique message identifier |
GetMDataVersion
Returns a current version of MutableData stored in the network.
Fields of GetMDataVersion
res: Result<u64, ClientError> | Result of getting a version of MutableData |
msg_id: MsgId | Unique message identifier |
GetMDataShell
Returns the shell of MutableData (everything except the entries).
Fields of GetMDataShell
res: Result<MutableData, ClientError> | Result of getting the shell of MutableData. |
msg_id: MsgId | Unique message identifier |
ListMDataEntries
Returns a complete list of entries in MutableData or an error in case of failure.
Fields of ListMDataEntries
res: Result<BTreeMap<Vec<u8>, Value>, ClientError> | Result of getting a list of entries in MutableData |
msg_id: MsgId | Unique message identifier |
ListMDataKeys
Returns a list of keys in MutableData or an error in case of failure.
Fields of ListMDataKeys
res: Result<BTreeSet<Vec<u8>>, ClientError> | Result of getting a list of keys in MutableData |
msg_id: MsgId | Unique message identifier |
ListMDataValues
Returns a list of values in MutableData or an error in case of failure.
Fields of ListMDataValues
res: Result<Vec<Value>, ClientError> | Result of getting a list of values in MutableData |
msg_id: MsgId | Unique message identifier |
GetMDataValue
Returns a single entry from MutableData or an error in case of failure.
Fields of GetMDataValue
res: Result<Value, ClientError> | Result of getting a value from MutableData |
msg_id: MsgId | Unique message identifier |
MutateMDataEntries
Returns a success or failure status of mutating MutableData in the network.
Fields of MutateMDataEntries
res: Result<(), ClientError> | Result of mutating an entry in MutableData |
msg_id: MsgId | Unique message identifier |
ListMDataPermissions
Returns a complete list of MutableData permissions stored on the network or an error in case of failure.
Fields of ListMDataPermissions
res: Result<BTreeMap<User, PermissionSet>, ClientError> | Result of getting a list of permissions in MutableData |
msg_id: MsgId | Unique message identifier |
ListMDataUserPermissions
Returns a list of permissions for a particular User in MutableData or an error in case of failure.
Fields of ListMDataUserPermissions
res: Result<PermissionSet, ClientError> | Result of getting a list of user permissions in MutableData |
msg_id: MsgId | Unique message identifier |
SetMDataUserPermissions
Returns a success or failure status of setting permissions for a particular User in MutableData.
Fields of SetMDataUserPermissions
res: Result<(), ClientError> | Result of setting a list of user permissions in MutableData |
msg_id: MsgId | Unique message identifier |
DelMDataUserPermissions
Returns a success or failure status of deleting permissions for a particular User in MutableData.
Fields of DelMDataUserPermissions
res: Result<(), ClientError> | Result of deleting a list of user permissions in MutableData |
msg_id: MsgId | Unique message identifier |
ChangeMDataOwner
Returns a success or failure status of chaning an owner of MutableData.
Fields of ChangeMDataOwner
res: Result<(), ClientError> | Result of chaning an owner of MutableData |
msg_id: MsgId | Unique message identifier |
ListAuthKeysAndVersion
Returns a list of authorised keys from MaidManager and the account version.
Fields of ListAuthKeysAndVersion
res: Result<(BTreeSet<PublicKey>, u64), ClientError> | Result of getting a list of authorised keys and version |
msg_id: MsgId | Unique message identifier |
InsAuthKey
Returns a success or failure status of inserting an authorised key into MaidManager.
Fields of InsAuthKey
res: Result<(), ClientError> | Result of inserting an authorised key |
msg_id: MsgId | Unique message identifier |
DelAuthKey
Returns a success or failure status of deleting an authorised key from MaidManager.
Fields of DelAuthKey
res: Result<(), ClientError> | Result of deleting an authorised key |
msg_id: MsgId | Unique message identifier |
Methods
impl Response
[src]
fn priority(&self) -> u8
The priority Crust should send this message with.
fn message_id(&self) -> &MsgId
Message ID getter.
fn is_cacheable(&self) -> bool
Is this response cacheable?
Trait Implementations
impl Clone for Response
[src]
fn clone(&self) -> Response
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Response
[src]
impl Eq for Response
[src]
impl Hash for Response
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Response
[src]
fn cmp(&self, __arg_0: &Response) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialEq for Response
[src]
fn eq(&self, __arg_0: &Response) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Response) -> bool
This method tests for !=
.
impl PartialOrd for Response
[src]
fn partial_cmp(&self, __arg_0: &Response) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Response) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Response) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Response) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Response) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more