Enum hyparview::Event [−][src]
pub enum Event<T> { NeighborUp { node: T, }, NeighborDown { node: T, }, }
Events emitted by HyParView Node.
Variants
NeighborUp
New neighbor node arrived.
Internally, it means node
was added to the active view of the local node.
Fields of NeighborUp
node: T | The ID of the neighbor node. |
NeighborDown
A neighbor node departed.
Internally, it means node
was removed from the active view of the local node.
Fields of NeighborDown
node: T | The ID of the neighbor node. |
Trait Implementations
impl<T: Debug> Debug for Event<T>
[src]
impl<T: Debug> Debug for Event<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Event<T>
[src]
impl<T: Clone> Clone for Event<T>
fn clone(&self) -> Event<T>
[src]
fn clone(&self) -> Event<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Event<T>
[src]
impl<T: PartialEq> PartialEq for Event<T>
fn eq(&self, other: &Event<T>) -> bool
[src]
fn eq(&self, other: &Event<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Event<T>) -> bool
[src]
fn ne(&self, other: &Event<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Event<T>
[src]
impl<T: Eq> Eq for Event<T>