Module safe_core::client[][src]

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

ClientInner

Struct containing fields expected by the Client trait. Implementers of Client should be composed around this struct. Once trait fields are in stable Rust, we can consider deprecating this struct.

Constants

IMMUT_DATA_CACHE_SIZE

Capacity of the immutable data cache.

REQUEST_TIMEOUT_SECS

Request timeout in seconds.

Traits

Client

Trait providing an interface for self-authentication client implementations, so they can interface all requests from high level API's to the actual routing layer and manage all interactions with it. Essentially provides an interface for non-blocking Clients 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).

setup_routing

Set up routing given a Client full_id and optional config and connect to the network.

spawn_routing_thread

Spawn a routing thread and run the routing event loop.