Struct libp2p_gossipsub::Message
source · pub struct Message {
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 RawMessage
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 PartialEq for Message
impl PartialEq for Message
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more