Enum libp2p_floodsub::FloodsubEvent [−][src]
pub enum FloodsubEvent { Message(FloodsubMessage), Subscribed { peer_id: PeerId, topic: Topic, }, Unsubscribed { peer_id: PeerId, topic: Topic, }, }
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.