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
Refresh(Vec<u8>, MsgId)
Represents a refresh message sent between vaults. Vec
GetAccountInfo(MsgId)
Gets MAID account information.
PutIData
Puts ImmutableData to the network.
Fields of PutIData
data: ImmutableData | ImmutableData to be stored |
msg_id: MsgId | Unique message identifier |
GetIData
Fetches ImmutableData from the network by the given name.
Fields of GetIData
name: XorName | Network identifier of ImmutableData |
msg_id: MsgId | Unique message identifier |
GetMData
Fetches whole MutableData from the network. Note: responses to this request are unlikely to accumulate during churn.
Fields of GetMData
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
PutMData
Creates a new MutableData in the network.
Fields of PutMData
data: MutableData | MutableData to be stored |
msg_id: MsgId | Unique message identifier |
requester: PublicKey | Requester public key |
GetMDataVersion
Fetches a latest version number.
Fields of GetMDataVersion
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
GetMDataShell
Fetches the shell (everthing except the entries).
Fields of GetMDataShell
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
ListMDataEntries
Fetches a list of entries (keys + values). Note: responses to this request are unlikely to accumulate during churn.
Fields of ListMDataEntries
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
ListMDataKeys
Fetches a list of keys in MutableData. Note: responses to this request are unlikely to accumulate during churn.
Fields of ListMDataKeys
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
ListMDataValues
Fetches a list of values in MutableData. Note: responses to this request are unlikely to accumulate during churn.
Fields of ListMDataValues
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
GetMDataValue
Fetches a single value from MutableData
Fields of GetMDataValue
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
key: Vec<u8> | Key of an entry to be fetched |
msg_id: MsgId | Unique message identifier |
MutateMDataEntries
Updates MutableData entries in bulk.
Fields of MutateMDataEntries
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
actions: BTreeMap<Vec<u8>, EntryAction> | A list of mutations (inserts, updates, or deletes) to be performed on MutableData in bulk. |
msg_id: MsgId | Unique message identifier |
requester: PublicKey | Requester public key |
ListMDataPermissions
Fetches a complete list of permissions.
Fields of ListMDataPermissions
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
msg_id: MsgId | Unique message identifier |
ListMDataUserPermissions
Fetches a list of permissions for a particular User.
Fields of ListMDataUserPermissions
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
user: User | A user identifier used to fetch permissions |
msg_id: MsgId | Unique message identifier |
SetMDataUserPermissions
Updates or inserts a list of permissions for a particular User in the given MutableData.
Fields of SetMDataUserPermissions
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
user: User | A user identifier used to set permissions |
permissions: PermissionSet | Permissions to be set for a user |
version: u64 | Incremented version of MutableData |
msg_id: MsgId | Unique message identifier |
requester: PublicKey | Requester public key |
DelMDataUserPermissions
Deletes a list of permissions for a particular User in the given MutableData.
Fields of DelMDataUserPermissions
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
user: User | A user identifier used to delete permissions |
version: u64 | Incremented version of MutableData |
msg_id: MsgId | Unique message identifier |
requester: PublicKey | Requester public key |
ChangeMDataOwner
Changes an owner of the given MutableData. Only the current owner can perform this action.
Fields of ChangeMDataOwner
name: XorName | Network identifier of MutableData |
tag: u64 | Type tag |
new_owners: BTreeSet<PublicKey> | A list of new owners |
version: u64 | Incremented version of MutableData |
msg_id: MsgId | Unique message identifier |
ListAuthKeysAndVersion(MsgId)
Lists authorised keys and version stored in MaidManager.
InsAuthKey
Inserts an autorised key (for an app, user, etc.) to MaidManager.
Fields of InsAuthKey
key: PublicKey | Authorised key to be inserted |
version: u64 | Incremented version |
msg_id: MsgId | Unique message identifier |
DelAuthKey
Deletes an authorised key from MaidManager.
Fields of DelAuthKey
key: PublicKey | Authorised key to be deleted |
version: u64 | Incremented version |
msg_id: MsgId | Unique message identifier |
Methods
impl Request
[src]
fn message_id(&self) -> &MsgId
Message ID getter.
fn is_cacheable(&self) -> bool
Is the response corresponding to this request cacheable?
Trait Implementations
impl Clone for Request
[src]
fn clone(&self) -> Request
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 Request
[src]
impl Eq for Request
[src]
impl Hash for Request
[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 Request
[src]
fn cmp(&self, __arg_0: &Request) -> 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 Request
[src]
fn eq(&self, __arg_0: &Request) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Request) -> bool
This method tests for !=
.
impl PartialOrd for Request
[src]
fn partial_cmp(&self, __arg_0: &Request) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Request) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Request) -> 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: &Request) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Request) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more