Struct routing::Node [] [src]

pub struct Node { /* fields omitted */ }

Interface for sending and receiving messages to and from other nodes, in the role of a full routing node.

A node is a part of the network that can route messages and be a member of a section or group authority. Its methods can be used to send requests and responses as either an individual ManagedNode or as a part of a section or group authority. Their src argument indicates that role, and can be any Authority other than Client.

Methods

impl Node
[src]

Creates a new builder to configure and create a Node.

Send a Get request to dst to retrieve data from the network.

Send a Put request to dst to store data on the network.

Send a Post request to dst to modify data on the network.

Send a Delete request to dst to remove data from the network.

Respond to a Get request indicating success and sending the requested data.

Respond to a Get request indicating failure.

Respond to a Put request indicating success.

Respond to a Put request indicating failure.

Respond to a Post request indicating success.

Respond to a Post request indicating failure.

Respond to a Delete request indicating success.

Respond to a Delete request indicating failure.

Respond to an Append request indicating success.

Respond to an Append request indicating failure.

Respond to a GetAccountInfo request indicating success.

Respond to a GetAccountInfo request indicating failure.

Send a Refresh request from src to dst to trigger churn.

Returns the first count names of the nodes in the routing table which are closest to the given one.

Returns the name of this node.

Trait Implementations

impl Drop for Node
[src]

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