[][src]Module safe_core::client

Client trait and related constants.

Re-exports

pub use self::account::ClientKeys;
pub use self::mdata_info::MDataInfo;

Modules

account

User Account information.

mdata_info

MDataInfo utilities.

recovery

Operations with recovery.

Structs

COST_OF_PUT

Expected cost of mutation operations.

ClientInner

Struct containing fields expected by the Client trait. Implementers of Client should be composed around this struct.

Enums

SafeKey

An enum representing the Full Id variants for a Client or App.

Constants

IMMUT_DATA_CACHE_SIZE

Capacity of the immutable data cache.

Traits

AuthActions

This trait implements functions that are supposed to be called only by CoreClient and AuthClient. Applications are not allowed to DELETE MData and get/mutate auth keys, hence AppClient does not implement this trait.

Client

Trait providing an interface for self-authentication client implementations, so they can interface all requests from high-level APIs to the actual routing layer and manage all interactions with it. Clients are non-blocking, with an asynchronous API using the futures abstraction from the futures-rs crate.

Functions

bootstrap_config

Return the crust::Config associated with the crust::Service (if any).

req

Send a request and wait for a response. This function is blocking.

test_create_balance

Create a new mock balance at an arbitrary address.

wallet_create_balance

Creates a new coin balance on the network.

wallet_get_balance

Get the balance at the given key's location

wallet_transfer_coins

Transfer coins