Struct libp2p::floodsub::protocol::FloodsubMessage [−][src]
pub struct FloodsubMessage {
pub source: PeerId,
pub data: Vec<u8, Global>,
pub sequence_number: Vec<u8, Global>,
pub topics: Vec<Topic, Global>,
}
Expand description
A message received by the floodsub system.
Fields
source: PeerId
Id of the peer that published this message.
data: Vec<u8, Global>
Content of the message. Its meaning is out of scope of this library.
sequence_number: Vec<u8, Global>
An incrementing sequence number.
topics: Vec<Topic, Global>
List of topics this message belongs to.
Each message can belong to multiple topics at once.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FloodsubMessage
impl Send for FloodsubMessage
impl Sync for FloodsubMessage
impl Unpin for FloodsubMessage
impl UnwindSafe for FloodsubMessage
Blanket Implementations
Mutably borrows from an owned value. Read more