Struct libp2p_gossipsub::GossipsubMessage
source · pub struct GossipsubMessage {
pub source: Option<PeerId>,
pub data: Vec<u8>,
pub sequence_number: Option<u64>,
pub topic: TopicHash,
}
Expand description
The message sent to the user after a RawGossipsubMessage
has been transformed by a
crate::DataTransform
.
Fields§
§source: Option<PeerId>
Id of the peer that published this message.
data: Vec<u8>
Content of the message.
sequence_number: Option<u64>
A random sequence number.
topic: TopicHash
The topic this message belongs to
Trait Implementations§
source§impl Clone for GossipsubMessage
impl Clone for GossipsubMessage
source§fn clone(&self) -> GossipsubMessage
fn clone(&self) -> GossipsubMessage
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