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 moreAuto Trait Implementations§
impl RefUnwindSafe for NotifyHandler
impl Send for NotifyHandler
impl Sync for NotifyHandler
impl Unpin for NotifyHandler
impl UnwindSafe for NotifyHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more