Struct libp2p_gossipsub::GossipsubMessage [−][src]
pub struct GossipsubMessage { pub source: Option<PeerId>, pub data: Vec<u8>, pub sequence_number: Option<u64>, pub topic: TopicHash, }
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
impl Clone for GossipsubMessage
[src]
impl Clone for GossipsubMessage
[src]fn clone(&self) -> GossipsubMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for GossipsubMessage
[src]
impl Hash for GossipsubMessage
[src]impl PartialEq<GossipsubMessage> for GossipsubMessage
[src]
impl PartialEq<GossipsubMessage> for GossipsubMessage
[src]