Struct libp2p_swarm::behaviour::ListenerClosed
source · pub struct ListenerClosed<'a> {
pub listener_id: ListenerId,
pub reason: Result<(), &'a Error>,
}
Expand description
FromSwarm
variant that informs the behaviour that a listener closed.
Fields§
§listener_id: ListenerId
§reason: Result<(), &'a Error>
Trait Implementations§
source§impl<'a> Clone for ListenerClosed<'a>
impl<'a> Clone for ListenerClosed<'a>
source§fn clone(&self) -> ListenerClosed<'a>
fn clone(&self) -> ListenerClosed<'a>
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 moreimpl<'a> Copy for ListenerClosed<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ListenerClosed<'a>
impl<'a> Send for ListenerClosed<'a>
impl<'a> Sync for ListenerClosed<'a>
impl<'a> Unpin for ListenerClosed<'a>
impl<'a> !UnwindSafe for ListenerClosed<'a>
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