Struct hyparview::message::NeighborMessage [−][src]
pub struct NeighborMessage<T> { pub sender: T, pub high_priority: bool, }
NEIGHBOR
message.
This is used for refilling active view shrunk by node disconnections.
In this crate, it is also used for notifing to new node that
HyParView level connection has been established
(in that case the value of high_priority
always be set to true
).
Fields
sender: T
The node ID of the message sender.
high_priority: bool
Whether the priority of the sender is high or low.
Trait Implementations
impl<T: Debug> Debug for NeighborMessage<T>
[src]
impl<T: Debug> Debug for NeighborMessage<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 NeighborMessage<T>
[src]
impl<T: Clone> Clone for NeighborMessage<T>
fn clone(&self) -> NeighborMessage<T>
[src]
fn clone(&self) -> NeighborMessage<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 NeighborMessage<T>
[src]
impl<T: PartialEq> PartialEq for NeighborMessage<T>
fn eq(&self, other: &NeighborMessage<T>) -> bool
[src]
fn eq(&self, other: &NeighborMessage<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NeighborMessage<T>) -> bool
[src]
fn ne(&self, other: &NeighborMessage<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for NeighborMessage<T>
[src]
impl<T: Eq> Eq for NeighborMessage<T>
Auto Trait Implementations
impl<T> Send for NeighborMessage<T> where
T: Send,
impl<T> Send for NeighborMessage<T> where
T: Send,
impl<T> Sync for NeighborMessage<T> where
T: Sync,
impl<T> Sync for NeighborMessage<T> where
T: Sync,