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]

[src]

Gets MAID account information.

[src]

Puts ImmutableData to the network

[src]

Fetches ImmutableData from the network by the given name.

[src]

Fetches a latest version number of the provided MutableData

[src]

Fetches the shell of the provided MutableData

[src]

Fetches the entire MutableData

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Creates a new MutableData in the network

[src]

Updates MutableData entries in bulk

[src]

Lists all permissions for a given MutableData

[src]

Lists a permission set for a given user

[src]

Updates or inserts a permission set for a given user

[src]

Deletes a permission set for a given user

[src]

Sends an ownership transfer request

[src]

Fetches a list of authorised keys and version in MaidManager

[src]

Adds a new authorised key to MaidManager

[src]

Removes an authorised key from MaidManager

impl Client
[src]

[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.

[src]

Returns the PublicId of this client.

[src]

Returns the bootstrap config that this client was created with.

Trait Implementations

impl Drop for Client
[src]

[src]

Executes the destructor for this type. Read more