Struct plumtree::message::IhaveMessage [−][src]
pub struct IhaveMessage<T: System> { pub sender: T::NodeId, pub message_id: T::MessageId, pub round: u16, pub realtime: bool, }
IHAVE
message.
Fields
sender: T::NodeId
The sender of the message.
message_id: T::MessageId
The identifier of the message that the sender has keeping.
round: u16
The hop count of the message.
realtime: bool
Indicates whether this is a real-time message or a buffered message.
The latter is used for synchronizing messages when new neighbors are joined.
Trait Implementations
impl<T: System> From<IhaveMessage<T>> for ProtocolMessage<T>
[src]
impl<T: System> From<IhaveMessage<T>> for ProtocolMessage<T>
fn from(f: IhaveMessage<T>) -> Self
[src]
fn from(f: IhaveMessage<T>) -> Self
Performs the conversion.
impl<T: System> Clone for IhaveMessage<T>
[src]
impl<T: System> Clone for IhaveMessage<T>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
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: System> Debug for IhaveMessage<T> where
T::NodeId: Debug,
T::MessageId: Debug,
[src]
impl<T: System> Debug for IhaveMessage<T> where
T::NodeId: Debug,
T::MessageId: Debug,