Enum libp2p::floodsub::FloodsubEvent [−][src]
pub enum FloodsubEvent {
Message(FloodsubMessage),
Subscribed {
peer_id: PeerId,
topic: Topic,
},
Unsubscribed {
peer_id: PeerId,
topic: Topic,
},
}Expand description
Event that can happen on the floodsub behaviour.
Variants
Message(FloodsubMessage)A message has been received.
A remote subscribed to a topic.
Show fields
A remote unsubscribed from a topic.
Show fields
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FloodsubEventimpl Send for FloodsubEventimpl Sync for FloodsubEventimpl Unpin for FloodsubEventimpl UnwindSafe for FloodsubEvent