[−][src]Struct safe_app::AppClient
Client object used by safe_app
.
Trait Implementations
impl Client for AppClient
[src]
type Context = AppContext
Associated message type.
fn full_id(&self) -> SafeKey
[src]
fn owner_key(&self) -> PublicKey
[src]
fn config(&self) -> Option<BootstrapConfig>
[src]
fn inner(&self) -> Rc<RefCell<Inner<Self, Self::Context>>>
[src]
fn public_encryption_key(&self) -> PublicKey
[src]
fn secret_encryption_key(&self) -> SecretKey
[src]
fn secret_symmetric_key(&self) -> Key
[src]
fn public_id(&self) -> PublicId
[src]
fn public_key(&self) -> PublicKey
[src]
fn encryption_keypair(&self) -> (PublicKey, SecretKey)
[src]
fn compose_message(&self, request: Request, sign: bool) -> Message
[src]
fn set_timeout(&self, duration: Duration)
[src]
fn restart_network(&self) -> Result<(), CoreError>
[src]
fn put_unseq_mutable_data(
&self,
data: UnseqData
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
data: UnseqData
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn transfer_coins(
&self,
client_id: Option<&FullId>,
destination: XorName,
amount: Coins,
transaction_id: Option<u64>
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
[src]
&self,
client_id: Option<&FullId>,
destination: XorName,
amount: Coins,
transaction_id: Option<u64>
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
fn create_balance(
&self,
client_id: Option<&FullId>,
new_balance_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
[src]
&self,
client_id: Option<&FullId>,
new_balance_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
fn insert_login_packet_for(
&self,
client_id: Option<&FullId>,
new_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>,
new_login_packet: LoginPacket
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
[src]
&self,
client_id: Option<&FullId>,
new_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>,
new_login_packet: LoginPacket
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
fn get_balance(
&self,
client_id: Option<&FullId>
) -> Box<dyn Future<Error = CoreError, Item = Coins> + 'static>
[src]
&self,
client_id: Option<&FullId>
) -> Box<dyn Future<Error = CoreError, Item = Coins> + 'static>
fn put_idata(
&self,
data: impl Into<Data>
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
data: impl Into<Data>
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn get_idata(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
fn del_unpub_idata(
&self,
name: XorName
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
name: XorName
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn put_seq_mutable_data(
&self,
data: SeqData
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
data: SeqData
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn get_unseq_mdata(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = UnseqData> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = UnseqData> + 'static>
fn get_seq_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = SeqValue> + 'static>
[src]
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = SeqValue> + 'static>
fn get_unseq_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = Vec<u8>> + 'static>
[src]
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = Vec<u8>> + 'static>
fn get_seq_mdata(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = SeqData> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = SeqData> + 'static>
fn mutate_seq_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: SeqEntryActions
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
name: XorName,
tag: u64,
actions: SeqEntryActions
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn mutate_unseq_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: UnseqEntryActions
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
name: XorName,
tag: u64,
actions: UnseqEntryActions
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn get_seq_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = SeqData> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = SeqData> + 'static>
fn get_unseq_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = UnseqData> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = UnseqData> + 'static>
fn get_mdata_version(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = u64> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = u64> + 'static>
fn list_unseq_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<Vec<u8>, Vec<u8>>> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<Vec<u8>, Vec<u8>>> + 'static>
fn list_seq_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<Vec<u8>, SeqValue>> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<Vec<u8>, SeqValue>> + 'static>
fn list_mdata_keys(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = BTreeSet<Vec<u8>>> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = BTreeSet<Vec<u8>>> + 'static>
fn list_seq_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = Vec<SeqValue>> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = Vec<SeqValue>> + 'static>
fn list_mdata_user_permissions(
&self,
address: Address,
user: PublicKey
) -> Box<dyn Future<Error = CoreError, Item = PermissionSet> + 'static>
[src]
&self,
address: Address,
user: PublicKey
) -> Box<dyn Future<Error = CoreError, Item = PermissionSet> + 'static>
fn list_unseq_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = Vec<Vec<u8>>> + 'static>
[src]
&self,
name: XorName,
tag: u64
) -> Box<dyn Future<Error = CoreError, Item = Vec<Vec<u8>>> + 'static>
fn put_adata(
&self,
data: Data
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
data: Data
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn get_adata(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
fn get_adata_shell(
&self,
data_index: Index,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
[src]
&self,
data_index: Index,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>
fn get_adata_value(
&self,
address: Address,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = Vec<u8>> + 'static>
[src]
&self,
address: Address,
key: Vec<u8>
) -> Box<dyn Future<Error = CoreError, Item = Vec<u8>> + 'static>
fn get_adata_range(
&self,
address: Address,
range: (Index, Index)
) -> Box<dyn Future<Error = CoreError, Item = Vec<Entry>> + 'static>
[src]
&self,
address: Address,
range: (Index, Index)
) -> Box<dyn Future<Error = CoreError, Item = Vec<Entry>> + 'static>
fn get_adata_indices(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Indices> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Indices> + 'static>
fn get_adata_last_entry(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Entry> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = Entry> + 'static>
fn get_unpub_adata_permissions_at_index(
&self,
address: Address,
permissions_index: Index
) -> Box<dyn Future<Error = CoreError, Item = UnpubPermissions> + 'static>
[src]
&self,
address: Address,
permissions_index: Index
) -> Box<dyn Future<Error = CoreError, Item = UnpubPermissions> + 'static>
fn get_pub_adata_permissions_at_index(
&self,
address: Address,
permissions_index: Index
) -> Box<dyn Future<Error = CoreError, Item = PubPermissions> + 'static>
[src]
&self,
address: Address,
permissions_index: Index
) -> Box<dyn Future<Error = CoreError, Item = PubPermissions> + 'static>
fn get_pub_adata_user_permissions(
&self,
address: Address,
permissions_index: Index,
user: User
) -> Box<dyn Future<Error = CoreError, Item = PubPermissionSet> + 'static>
[src]
&self,
address: Address,
permissions_index: Index,
user: User
) -> Box<dyn Future<Error = CoreError, Item = PubPermissionSet> + 'static>
fn get_unpub_adata_user_permissions(
&self,
address: Address,
permissions_index: Index,
public_key: PublicKey
) -> Box<dyn Future<Error = CoreError, Item = UnpubPermissionSet> + 'static>
[src]
&self,
address: Address,
permissions_index: Index,
public_key: PublicKey
) -> Box<dyn Future<Error = CoreError, Item = UnpubPermissionSet> + 'static>
fn add_unpub_adata_permissions(
&self,
address: Address,
permissions: UnpubPermissions,
permissions_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
address: Address,
permissions: UnpubPermissions,
permissions_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn add_pub_adata_permissions(
&self,
address: Address,
permissions: PubPermissions,
permissions_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
address: Address,
permissions: PubPermissions,
permissions_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn set_adata_owners(
&self,
address: Address,
owner: Owner,
owners_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
address: Address,
owner: Owner,
owners_index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn get_adata_owners(
&self,
address: Address,
owners_index: Index
) -> Box<dyn Future<Error = CoreError, Item = Owner> + 'static>
[src]
&self,
address: Address,
owners_index: Index
) -> Box<dyn Future<Error = CoreError, Item = Owner> + 'static>
fn append_seq_adata(
&self,
append: AppendOperation,
index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
append: AppendOperation,
index: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn append_unseq_adata(
&self,
append: AppendOperation
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
append: AppendOperation
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn list_mdata_permissions(
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<PublicKey, PermissionSet>> + 'static>
[src]
&self,
address: Address
) -> Box<dyn Future<Error = CoreError, Item = BTreeMap<PublicKey, PermissionSet>> + 'static>
fn set_mdata_user_permissions(
&self,
address: Address,
user: PublicKey,
permissions: PermissionSet,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
address: Address,
user: PublicKey,
permissions: PermissionSet,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn del_mdata_user_permissions(
&self,
address: Address,
user: PublicKey,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
address: Address,
user: PublicKey,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn change_mdata_owner(
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
[src]
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<dyn Future<Error = CoreError, Item = ()> + 'static>
fn test_set_balance(
&self,
client_id: Option<&FullId>,
amount: Coins
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
[src]
&self,
client_id: Option<&FullId>,
amount: Coins
) -> Box<dyn Future<Error = CoreError, Item = Transaction> + 'static>
impl Clone for AppClient
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AppClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AppClient
impl !Send for AppClient
impl !Sync for AppClient
impl Unpin for AppClient
impl !UnwindSafe for AppClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,