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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FloodsubEvent
impl Send for FloodsubEvent
impl Sync for FloodsubEvent
impl Unpin for FloodsubEvent
impl UnwindSafe for FloodsubEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more