Enum libp2p_swarm::behaviour::NotifyHandler
source · pub enum NotifyHandler {
One(ConnectionId),
Any,
}
Expand description
The options w.r.t. which connection handler to notify of an event.
Variants§
One(ConnectionId)
Notify a particular connection handler.
Any
Notify an arbitrary connection handler.
Trait Implementations§
source§impl Clone for NotifyHandler
impl Clone for NotifyHandler
source§fn clone(&self) -> NotifyHandler
fn clone(&self) -> NotifyHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more