Struct safe_app::AppClient [−][src]
pub struct AppClient { /* fields omitted */ }
Client object used by safe_app.
Trait Implementations
impl Client for AppClient
[src]
impl Client for AppClient
type MsgType = AppContext
Associated message type.
fn full_id(&self) -> Option<FullId>
[src]
fn full_id(&self) -> Option<FullId>
Return the client's ID.
fn config(&self) -> Option<BootstrapConfig>
[src]
fn config(&self) -> Option<BootstrapConfig>
Return a crust::Config
if the Client
was initialized with one.
fn cm_addr(&self) -> Option<Authority<XorName>>
[src]
fn cm_addr(&self) -> Option<Authority<XorName>>
Address of the Client Manager.
fn inner(&self) -> Rc<RefCell<ClientInner<Self, Self::MsgType>>>
[src]
fn inner(&self) -> Rc<RefCell<ClientInner<Self, Self::MsgType>>>
Return an associated ClientInner
type which is expected to contain fields associated with the implementing type. Read more
fn public_signing_key(&self) -> Option<PublicKey>
[src]
fn public_signing_key(&self) -> Option<PublicKey>
Return the Public Signing key.
fn secret_signing_key(&self) -> Option<SecretKey>
[src]
fn secret_signing_key(&self) -> Option<SecretKey>
Return the Secret Signing key.
fn public_encryption_key(&self) -> Option<PublicKey>
[src]
fn public_encryption_key(&self) -> Option<PublicKey>
Return the public encryption key.
fn secret_encryption_key(&self) -> Option<SecretKey>
[src]
fn secret_encryption_key(&self) -> Option<SecretKey>
Return the Secret encryption key.
fn secret_symmetric_key(&self) -> Option<Key>
[src]
fn secret_symmetric_key(&self) -> Option<Key>
Return the Symmetric Encryption key.
fn owner_key(&self) -> Option<PublicKey>
[src]
fn owner_key(&self) -> Option<PublicKey>
Return the owner signing key.
fn encryption_keypair(&self) -> Option<(PublicKey, SecretKey)>
[src]
fn encryption_keypair(&self) -> Option<(PublicKey, SecretKey)>
Return the public and secret encryption keys.
fn signing_keypair(&self) -> Option<(PublicKey, SecretKey)>
[src]
fn signing_keypair(&self) -> Option<(PublicKey, SecretKey)>
Return the public and secret signing keys.
fn set_timeout(&self, duration: Duration)
[src]
fn set_timeout(&self, duration: Duration)
Set request timeout.
fn restart_routing(&self) -> Result<(), CoreError>
[src]
fn restart_routing(&self) -> Result<(), CoreError>
Restart the routing client and reconnect to the network.
ⓘImportant traits for Box<R>fn get_idata(
&self,
name: XorName
) -> Box<Future<Item = ImmutableData, Error = CoreError> + 'static>
[src]
fn get_idata(
&self,
name: XorName
) -> Box<Future<Item = ImmutableData, Error = CoreError> + 'static>
Get immutable data from the network. If the data exists locally in the cache then it will be immediately returned without making an actual network request. Read more
ⓘImportant traits for Box<R>fn put_idata(
&self,
data: ImmutableData
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn put_idata(
&self,
data: ImmutableData
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Put immutable data onto the network.
ⓘImportant traits for Box<R>fn put_mdata(
&self,
data: MutableData
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn put_mdata(
&self,
data: MutableData
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Put MutableData
onto the network.
ⓘImportant traits for Box<R>fn mutate_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: BTreeMap<Vec<u8>, EntryAction>
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn mutate_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: BTreeMap<Vec<u8>, EntryAction>
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Mutates MutableData
entries in bulk.
ⓘImportant traits for Box<R>fn get_mdata(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = MutableData, Error = CoreError> + 'static>
[src]
fn get_mdata(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = MutableData, Error = CoreError> + 'static>
Get entire MutableData
from the network.
ⓘImportant traits for Box<R>fn get_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = MutableData, Error = CoreError> + 'static>
[src]
fn get_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = MutableData, Error = CoreError> + 'static>
Get a shell (bare bones) version of MutableData
from the network.
ⓘImportant traits for Box<R>fn get_mdata_version(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = u64, Error = CoreError> + 'static>
[src]
fn get_mdata_version(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = u64, Error = CoreError> + 'static>
Get a current version of MutableData
from the network.
ⓘImportant traits for Box<R>fn list_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeMap<Vec<u8>, Value>, Error = CoreError> + 'static>
[src]
fn list_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeMap<Vec<u8>, Value>, Error = CoreError> + 'static>
Return a complete list of entries in MutableData
.
ⓘImportant traits for Box<R>fn list_mdata_keys(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeSet<Vec<u8>>, Error = CoreError> + 'static>
[src]
fn list_mdata_keys(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeSet<Vec<u8>>, Error = CoreError> + 'static>
Return a list of keys in MutableData
stored on the network.
ⓘImportant traits for Box<R>fn list_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = Vec<Value>, Error = CoreError> + 'static>
[src]
fn list_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = Vec<Value>, Error = CoreError> + 'static>
Return a list of keys in MutableData
stored on the network.
ⓘImportant traits for Box<R>fn get_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<Future<Item = Value, Error = CoreError> + 'static>
[src]
fn get_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<Future<Item = Value, Error = CoreError> + 'static>
Get a single entry from MutableData
.
ⓘImportant traits for Box<R>fn get_account_info(
&self
) -> Box<Future<Item = AccountInfo, Error = CoreError> + 'static>
[src]
fn get_account_info(
&self
) -> Box<Future<Item = AccountInfo, Error = CoreError> + 'static>
Get data from the network.
ⓘImportant traits for Box<R>fn list_mdata_permissions(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeMap<User, PermissionSet>, Error = CoreError> + 'static>
[src]
fn list_mdata_permissions(
&self,
name: XorName,
tag: u64
) -> Box<Future<Item = BTreeMap<User, PermissionSet>, Error = CoreError> + 'static>
Return a list of permissions in MutableData
stored on the network.
ⓘImportant traits for Box<R>fn list_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User
) -> Box<Future<Item = PermissionSet, Error = CoreError> + 'static>
[src]
fn list_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User
) -> Box<Future<Item = PermissionSet, Error = CoreError> + 'static>
Return a list of permissions for a particular User in MutableData.
ⓘImportant traits for Box<R>fn set_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User,
permissions: PermissionSet,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn set_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User,
permissions: PermissionSet,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Updates or inserts a permission set for a given user
ⓘImportant traits for Box<R>fn del_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn del_mdata_user_permissions(
&self,
name: XorName,
tag: u64,
user: User,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Deletes a permission set for a given user
ⓘImportant traits for Box<R>fn change_mdata_owner(
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn change_mdata_owner(
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Sends an ownership transfer request.
ⓘImportant traits for Box<R>fn list_auth_keys_and_version(
&self
) -> Box<Future<Item = (BTreeSet<PublicKey>, u64), Error = CoreError> + 'static>
[src]
fn list_auth_keys_and_version(
&self
) -> Box<Future<Item = (BTreeSet<PublicKey>, u64), Error = CoreError> + 'static>
Fetches a list of authorised keys and version in MaidManager.
ⓘImportant traits for Box<R>fn ins_auth_key(
&self,
key: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn ins_auth_key(
&self,
key: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Adds a new authorised key to MaidManager.
ⓘImportant traits for Box<R>fn del_auth_key(
&self,
key: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
[src]
fn del_auth_key(
&self,
key: PublicKey,
version: u64
) -> Box<Future<Item = (), Error = CoreError> + 'static>
Removes an authorised key from MaidManager.
impl Clone for AppClient
[src]
impl Clone for AppClient
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AppClient
[src]
impl Debug for AppClient