Enum routing::Authority [] [src]

pub enum Authority {
    ClientManager(XorName),
    NaeManager(XorName),
    NodeManager(XorName),
    ManagedNode(XorName),
    Client {
        client_key: PublicKey,
        peer_id: PeerId,
        proxy_node_name: XorName,
    },
}

An entity that can act as a source or destination of a message.

An Authority can be an individual Client or ManagedNode, or a group of nodes, like a NodeManager, ClientManager or NaeManager.

Variants

Manager of a Client. XorName is the hash of the Client's client_key.

Manager of a network-addressable element. XorName is the name of the element in question.

Manager of a ManagedNode. XorName is that of the ManagedNode.

A non-client node (i.e. a vault) which is managed by NodeManagers. XorName is provided by the network relocation process immediately after bootstrapping.

A Client.

Fields

The client's public signing key. The hash of this specifies the location of the Client in the network address space.

The Crust peer ID of the client.

The name of the single ManagedNode which the Client connects to and proxies all messages through.

Methods

impl Authority
[src]

Returns true if group authority, otherwise false.

Returns the name of authority.

Returns the Destination for the RoutingTable.

Trait Implementations

impl Encodable for Authority
[src]

impl Decodable for Authority
[src]

impl PartialEq for Authority
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Authority
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for Authority
[src]

impl Ord for Authority
[src]

This method returns an Ordering between self and other. Read more

impl Clone for Authority
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Authority
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Authority
[src]

Formats the value using the given formatter.