Enum hyparview::Event[][src]

pub enum Event<T> {
    NeighborUp {
        node: T,
    },
    NeighborDown {
        node: T,
    },
}

Events emitted by HyParView Node.

Variants

New neighbor node arrived.

Internally, it means node was added to the active view of the local node.

Fields of NeighborUp

The ID of the neighbor node.

A neighbor node departed.

Internally, it means node was removed from the active view of the local node.

Fields of NeighborDown

The ID of the neighbor node.

Trait Implementations

impl<T: Debug> Debug for Event<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Event<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Event<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for Event<T>
[src]

Auto Trait Implementations

impl<T> Send for Event<T> where
    T: Send

impl<T> Sync for Event<T> where
    T: Sync