Enum routing::Event [] [src]

pub enum Event {
    Request {
        request: Request,
        src: Authority<XorName>,
        dst: Authority<XorName>,
    },
    Response {
        response: Response,
        src: Authority<XorName>,
        dst: Authority<XorName>,
    },
    NodeAdded(XorNameRoutingTable<XorName>),
    NodeLost(XorNameRoutingTable<XorName>),
    SectionSplit(Prefix<XorName>),
    SectionMerge(Prefix<XorName>),
    Connected,
    RestartRequired,
    Terminate,
    Tick,
}

An Event raised by a Node or Client via its event sender.

These are sent by routing to the library's user. It allows the user to handle requests and responses, and to react to changes in the network.

Request and Response events from section authorities are only raised once the quorum has been reached, i.e. enough members of the section have sent the same message.

Variants

Received a request message.

Fields of Request

The request message.

The source authority that sent the request.

The destination authority that receives the request.

Received a response message.

Fields of Response

The response message.

The source authority that sent the response.

The destination authority that receives the response.

A node has connected to us.

A node has disconnected from us.

Our own section has been split, resulting in the included Prefix for our new section.

Our own section requires merged with others, resulting in the included Prefix for our new section.

The client has successfully connected to a proxy node on the network.

Disconnected or failed to connect - restart required.

Startup failed - terminate.

This event is sent periodically every time Routing sends the Heartbeat messages.

Trait Implementations

impl Clone for Event
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Event
[src]

impl PartialEq for Event
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Event
[src]

[src]

Formats the value using the given formatter.