Struct libp2p::gossipsub::GossipsubMessage [−][src]
pub struct GossipsubMessage {
pub source: Option<PeerId>,
pub data: Vec<u8, Global>,
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, Global>Content of the message.
sequence_number: Option<u64>A random sequence number.
topic: TopicHashThe 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 GossipsubMessageimpl Send for GossipsubMessageimpl Sync for GossipsubMessageimpl Unpin for GossipsubMessageimpl UnwindSafe for GossipsubMessageBlanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, pub fn vzip(self) -> V