Enum libp2p_pubsub_core::Event
source · pub enum Event {
MessageReceived {
src: PeerId,
message: Message,
},
}
Expand description
This enum represents events that can be emitted by the pubsub
Behaviour
.
Variants§
MessageReceived
Fields
§
src: PeerId
Peer that propagated the message.
Do not confuse with the original author of the message, which is optionally included in
the message itself in the message’s from
field.
field.
Emitted by the pubsub behaviour when a message associated with a topic the node is subscribed to is received.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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