Struct libp2p::floodsub::FloodsubMessage [−][src]
pub struct FloodsubMessage {
pub source: PeerId,
pub data: Vec<u8, Global>,
pub sequence_number: Vec<u8, Global>,
pub topics: Vec<Topic, Global>,
}Expand description
A message received by the floodsub system.
Fields
source: PeerIdId of the peer that published this message.
data: Vec<u8, Global>Content of the message. Its meaning is out of scope of this library.
sequence_number: Vec<u8, Global>An incrementing sequence number.
topics: Vec<Topic, Global>List of topics this message belongs to.
Each message can belong to multiple topics at once.
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 FloodsubMessageimpl Send for FloodsubMessageimpl Sync for FloodsubMessageimpl Unpin for FloodsubMessageimpl UnwindSafe for FloodsubMessageBlanket 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