Enum libp2p_gossipsub::Event
source · pub enum Event {
Message {
propagation_source: PeerId,
message_id: MessageId,
message: Message,
},
Subscribed {
peer_id: PeerId,
topic: TopicHash,
},
Unsubscribed {
peer_id: PeerId,
topic: TopicHash,
},
GossipsubNotSupported {
peer_id: PeerId,
},
}
Expand description
Event that can be emitted by the gossipsub behaviour.
Variants§
Message
Fields
A message has been received.
Subscribed
A remote subscribed to a topic.
Unsubscribed
Fields
A remote unsubscribed from a topic.
GossipsubNotSupported
A peer that does not support gossipsub has connected.
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