Enum libp2p_floodsub::FloodsubEvent
source · 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.
Subscribed
A remote subscribed to a topic.
Unsubscribed
A remote unsubscribed from a topic.