[−][src]Struct safe_core::client::core_client::CoreClient
Barebones Client object used for testing purposes.
Methods
impl CoreClient
[src]
pub fn new(
acc_locator: &str,
acc_password: &str,
el_handle: Handle,
core_tx: CoreMsgTx<Self, ()>,
net_tx: NetworkTx
) -> Result<Self, CoreError>
[src]
acc_locator: &str,
acc_password: &str,
el_handle: Handle,
core_tx: CoreMsgTx<Self, ()>,
net_tx: NetworkTx
) -> Result<Self, CoreError>
This will create a basic Client object which is sufficient only for testing purposes.
Trait Implementations
impl Client for CoreClient
[src]
type MsgType = ()
Associated message type.
fn full_id(&self) -> SafeKey
[src]
fn public_id(&self) -> PublicId
[src]
fn config(&self) -> Option<BootstrapConfig>
[src]
fn inner(&self) -> Rc<RefCell<ClientInner<Self, Self::MsgType>>>
[src]
fn public_encryption_key(&self) -> PublicKey
[src]
fn secret_encryption_key(&self) -> SecretKey
[src]
fn public_signing_key(&self) -> PublicKey
[src]
fn secret_signing_key(&self) -> SecretKey
[src]
fn secret_symmetric_key(&self) -> Key
[src]
fn public_bls_key(&self) -> PublicKey
[src]
fn secret_bls_key(&self) -> SecretKey
[src]
fn owner_key(&self) -> PublicKey
[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 signing_keypair(&self) -> (PublicKey, SecretKey)
[src]
fn set_timeout(&self, duration: Duration)
[src]
fn restart_network(&self) -> Result<(), CoreError>
[src]
fn put_unseq_mutable_data(&self, data: UnseqMutableData) -> Box<CoreFuture<()>>
[src]
fn transfer_coins(
&self,
secret_key: Option<&BlsSecretKey>,
destination: XorName,
amount: Coins,
transaction_id: Option<u64>
) -> Box<CoreFuture<Transaction>>
[src]
&self,
secret_key: Option<&BlsSecretKey>,
destination: XorName,
amount: Coins,
transaction_id: Option<u64>
) -> Box<CoreFuture<Transaction>>
fn create_balance(
&self,
secret_key: Option<&BlsSecretKey>,
new_balance_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>
) -> Box<CoreFuture<Transaction>>
[src]
&self,
secret_key: Option<&BlsSecretKey>,
new_balance_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>
) -> Box<CoreFuture<Transaction>>
fn insert_login_packet_for(
&self,
secret_key: Option<&BlsSecretKey>,
new_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>,
new_login_packet: LoginPacket
) -> Box<CoreFuture<Transaction>>
[src]
&self,
secret_key: Option<&BlsSecretKey>,
new_owner: PublicKey,
amount: Coins,
transaction_id: Option<u64>,
new_login_packet: LoginPacket
) -> Box<CoreFuture<Transaction>>
fn get_balance(
&self,
secret_key: Option<&BlsSecretKey>
) -> Box<CoreFuture<Coins>>
[src]
&self,
secret_key: Option<&BlsSecretKey>
) -> Box<CoreFuture<Coins>>
fn put_idata(&self, data: impl Into<IData>) -> Box<CoreFuture<()>>
[src]
fn get_idata(&self, address: IDataAddress) -> Box<CoreFuture<IData>>
[src]
fn del_unpub_idata(&self, name: XorName) -> Box<CoreFuture<()>>
[src]
fn put_seq_mutable_data(&self, data: SeqMutableData) -> Box<CoreFuture<()>>
[src]
fn get_unseq_mdata(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<UnseqMutableData>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<UnseqMutableData>>
fn get_seq_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<CoreFuture<MDataSeqValue>>
[src]
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<CoreFuture<MDataSeqValue>>
fn get_unseq_mdata_value(
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<CoreFuture<Vec<u8>>>
[src]
&self,
name: XorName,
tag: u64,
key: Vec<u8>
) -> Box<CoreFuture<Vec<u8>>>
fn get_seq_mdata(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<SeqMutableData>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<SeqMutableData>>
fn mutate_seq_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: MDataSeqEntryActions
) -> Box<CoreFuture<()>>
[src]
&self,
name: XorName,
tag: u64,
actions: MDataSeqEntryActions
) -> Box<CoreFuture<()>>
fn mutate_unseq_mdata_entries(
&self,
name: XorName,
tag: u64,
actions: MDataUnseqEntryActions
) -> Box<CoreFuture<()>>
[src]
&self,
name: XorName,
tag: u64,
actions: MDataUnseqEntryActions
) -> Box<CoreFuture<()>>
fn get_seq_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<SeqMutableData>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<SeqMutableData>>
fn get_unseq_mdata_shell(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<UnseqMutableData>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<UnseqMutableData>>
fn get_mdata_version(&self, address: MDataAddress) -> Box<CoreFuture<u64>>
[src]
fn list_unseq_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<BTreeMap<Vec<u8>, Vec<u8>>>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<BTreeMap<Vec<u8>, Vec<u8>>>>
fn list_seq_mdata_entries(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<MDataSeqEntries>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<MDataSeqEntries>>
fn list_mdata_keys(
&self,
address: MDataAddress
) -> Box<CoreFuture<BTreeSet<Vec<u8>>>>
[src]
&self,
address: MDataAddress
) -> Box<CoreFuture<BTreeSet<Vec<u8>>>>
fn list_seq_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<Vec<MDataSeqValue>>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<Vec<MDataSeqValue>>>
fn list_mdata_user_permissions(
&self,
address: MDataAddress,
user: PublicKey
) -> Box<CoreFuture<MDataPermissionSet>>
[src]
&self,
address: MDataAddress,
user: PublicKey
) -> Box<CoreFuture<MDataPermissionSet>>
fn list_unseq_mdata_values(
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<Vec<Vec<u8>>>>
[src]
&self,
name: XorName,
tag: u64
) -> Box<CoreFuture<Vec<Vec<u8>>>>
fn put_adata(&self, data: AData) -> Box<CoreFuture<()>>
[src]
fn get_adata(&self, address: ADataAddress) -> Box<CoreFuture<AData>>
[src]
fn get_adata_shell(
&self,
data_index: ADataIndex,
address: ADataAddress
) -> Box<CoreFuture<AData>>
[src]
&self,
data_index: ADataIndex,
address: ADataAddress
) -> Box<CoreFuture<AData>>
fn get_adata_value(
&self,
address: ADataAddress,
key: Vec<u8>
) -> Box<CoreFuture<Vec<u8>>>
[src]
&self,
address: ADataAddress,
key: Vec<u8>
) -> Box<CoreFuture<Vec<u8>>>
fn get_adata_range(
&self,
address: ADataAddress,
range: (ADataIndex, ADataIndex)
) -> Box<CoreFuture<ADataEntries>>
[src]
&self,
address: ADataAddress,
range: (ADataIndex, ADataIndex)
) -> Box<CoreFuture<ADataEntries>>
fn get_adata_indices(
&self,
address: ADataAddress
) -> Box<CoreFuture<ADataIndices>>
[src]
&self,
address: ADataAddress
) -> Box<CoreFuture<ADataIndices>>
fn get_adata_last_entry(
&self,
address: ADataAddress
) -> Box<CoreFuture<ADataEntry>>
[src]
&self,
address: ADataAddress
) -> Box<CoreFuture<ADataEntry>>
fn get_unpub_adata_permissions_at_index(
&self,
address: ADataAddress,
permissions_index: ADataIndex
) -> Box<CoreFuture<ADataUnpubPermissions>>
[src]
&self,
address: ADataAddress,
permissions_index: ADataIndex
) -> Box<CoreFuture<ADataUnpubPermissions>>
fn get_pub_adata_permissions_at_index(
&self,
address: ADataAddress,
permissions_index: ADataIndex
) -> Box<CoreFuture<ADataPubPermissions>>
[src]
&self,
address: ADataAddress,
permissions_index: ADataIndex
) -> Box<CoreFuture<ADataPubPermissions>>
fn get_pub_adata_user_permissions(
&self,
address: ADataAddress,
permissions_index: ADataIndex,
user: ADataUser
) -> Box<CoreFuture<ADataPubPermissionSet>>
[src]
&self,
address: ADataAddress,
permissions_index: ADataIndex,
user: ADataUser
) -> Box<CoreFuture<ADataPubPermissionSet>>
fn get_unpub_adata_user_permissions(
&self,
address: ADataAddress,
permissions_index: ADataIndex,
public_key: PublicKey
) -> Box<CoreFuture<ADataUnpubPermissionSet>>
[src]
&self,
address: ADataAddress,
permissions_index: ADataIndex,
public_key: PublicKey
) -> Box<CoreFuture<ADataUnpubPermissionSet>>
fn add_unpub_adata_permissions(
&self,
address: ADataAddress,
permissions: ADataUnpubPermissions,
permissions_index: u64
) -> Box<CoreFuture<()>>
[src]
&self,
address: ADataAddress,
permissions: ADataUnpubPermissions,
permissions_index: u64
) -> Box<CoreFuture<()>>
fn add_pub_adata_permissions(
&self,
address: ADataAddress,
permissions: ADataPubPermissions,
permissions_index: u64
) -> Box<CoreFuture<()>>
[src]
&self,
address: ADataAddress,
permissions: ADataPubPermissions,
permissions_index: u64
) -> Box<CoreFuture<()>>
fn set_adata_owners(
&self,
address: ADataAddress,
owner: ADataOwner,
owners_index: u64
) -> Box<CoreFuture<()>>
[src]
&self,
address: ADataAddress,
owner: ADataOwner,
owners_index: u64
) -> Box<CoreFuture<()>>
fn get_adata_owners(
&self,
address: ADataAddress,
owners_index: ADataIndex
) -> Box<CoreFuture<ADataOwner>>
[src]
&self,
address: ADataAddress,
owners_index: ADataIndex
) -> Box<CoreFuture<ADataOwner>>
fn append_seq_adata(
&self,
append: ADataAppendOperation,
index: u64
) -> Box<CoreFuture<()>>
[src]
&self,
append: ADataAppendOperation,
index: u64
) -> Box<CoreFuture<()>>
fn append_unseq_adata(
&self,
append: ADataAppendOperation
) -> Box<CoreFuture<()>>
[src]
&self,
append: ADataAppendOperation
) -> Box<CoreFuture<()>>
fn list_mdata_permissions(
&self,
address: MDataAddress
) -> Box<CoreFuture<BTreeMap<PublicKey, MDataPermissionSet>>>
[src]
&self,
address: MDataAddress
) -> Box<CoreFuture<BTreeMap<PublicKey, MDataPermissionSet>>>
fn set_mdata_user_permissions(
&self,
address: MDataAddress,
user: PublicKey,
permissions: MDataPermissionSet,
version: u64
) -> Box<CoreFuture<()>>
[src]
&self,
address: MDataAddress,
user: PublicKey,
permissions: MDataPermissionSet,
version: u64
) -> Box<CoreFuture<()>>
fn del_mdata_user_permissions(
&self,
address: MDataAddress,
user: PublicKey,
version: u64
) -> Box<CoreFuture<()>>
[src]
&self,
address: MDataAddress,
user: PublicKey,
version: u64
) -> Box<CoreFuture<()>>
fn change_mdata_owner(
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<CoreFuture<()>>
[src]
&self,
name: XorName,
tag: u64,
new_owner: PublicKey,
version: u64
) -> Box<CoreFuture<()>>
impl AuthActions for CoreClient
[src]
fn list_auth_keys_and_version(
&self
) -> Box<CoreFuture<(BTreeMap<PublicKey, AppPermissions>, u64)>>
[src]
&self
) -> Box<CoreFuture<(BTreeMap<PublicKey, AppPermissions>, u64)>>
fn ins_auth_key(
&self,
key: PublicKey,
permissions: AppPermissions,
version: u64
) -> Box<CoreFuture<()>>
[src]
&self,
key: PublicKey,
permissions: AppPermissions,
version: u64
) -> Box<CoreFuture<()>>
fn del_auth_key(&self, key: PublicKey, version: u64) -> Box<CoreFuture<()>>
[src]
fn delete_mdata(&self, address: MDataAddress) -> Box<CoreFuture<()>>
[src]
fn delete_adata(&self, address: ADataAddress) -> Box<CoreFuture<()>>
[src]
impl Clone for CoreClient
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !Send for CoreClient
impl Unpin for CoreClient
impl !Sync for CoreClient
impl !UnwindSafe for CoreClient
impl !RefUnwindSafe for CoreClient
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
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> UnsafeAny for T where
T: Any,
T: Any,