Struct libp2p_floodsub::protocol::FloodsubMessage
source · pub struct FloodsubMessage {
pub source: PeerId,
pub data: Vec<u8>,
pub sequence_number: Vec<u8>,
pub topics: Vec<Topic>,
}
Expand description
A message received by the floodsub system.
Fields§
§source: PeerId
Id of the peer that published this message.
data: Vec<u8>
Content of the message. Its meaning is out of scope of this library.
sequence_number: Vec<u8>
An incrementing sequence number.
topics: Vec<Topic>
List of topics this message belongs to.
Each message can belong to multiple topics at once.
Trait Implementations§
source§impl Clone for FloodsubMessage
impl Clone for FloodsubMessage
source§fn clone(&self) -> FloodsubMessage
fn clone(&self) -> FloodsubMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more