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
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 GossipsubMessage
impl Send for GossipsubMessage
impl Sync for GossipsubMessage
impl Unpin for GossipsubMessage
impl UnwindSafe for GossipsubMessage
Blanket Implementations
Mutably borrows from an owned value. Read more