Struct routing::Client [] [src]

pub struct Client { /* fields omitted */ }

Interface for sending and receiving messages to and from a network of nodes in the role of a client.

A client is connected to the network via one or more nodes. Messages are never routed via a client, and a client cannot be part of a section authority.

Methods

impl Client
[src]

Gets MAID account information.

Puts ImmutableData to the network

Fetches ImmutableData from the network by the given name.

Fetches a latest version number of the provided MutableData

Fetches the shell of the provided MutableData

Fetches the entire MutableData

Fetches a list of entries (keys + values) of the provided MutableData Note: response to this request is unlikely to accumulate during churn.

Fetches a list of keys of the provided MutableData Note: response to this request is unlikely to accumulate during churn.

Fetches a list of values of the provided MutableData Note: response to this request is unlikely to accumulate during churn.

Fetches a single value from the provided MutableData by the given key

Creates a new MutableData in the network

Updates MutableData entries in bulk

Lists all permissions for a given MutableData

Lists a permission set for a given user

Updates or inserts a permission set for a given user

Deletes a permission set for a given user

Sends an ownership transfer request

Fetches a list of authorised keys and version in MaidManager

Adds a new authorised key to MaidManager

Removes an authorised key from MaidManager

impl Client
[src]

Create a new Client.

It will automatically connect to the network, but not attempt to achieve full routing node status. The name of the client will be the name of the PublicId of the keys and must equal the SHA512 hash of its public signing key, otherwise the client will be instantly terminated.

Keys will be exchanged with the ClientAuthority so that communication with the network is cryptographically secure and uses section consensus. The restriction for the client name exists to ensure that the client cannot choose its ClientAuthority.

Returns the PublicId of this client.

Returns the bootstrap config that this client was created with.

Trait Implementations

impl Drop for Client
[src]

A method called when the value goes out of scope. Read more