Struct libp2p_swarm::behaviour::ListenerError
source · pub struct ListenerError<'a> {
pub listener_id: ListenerId,
pub err: &'a (dyn Error + 'static),
}
Expand description
FromSwarm
variant that informs the behaviour that a listener experienced an error.
Fields§
§listener_id: ListenerId
§err: &'a (dyn Error + 'static)
Trait Implementations§
source§impl<'a> Clone for ListenerError<'a>
impl<'a> Clone for ListenerError<'a>
source§fn clone(&self) -> ListenerError<'a>
fn clone(&self) -> ListenerError<'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 ListenerError<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ListenerError<'a>
impl<'a> !Send for ListenerError<'a>
impl<'a> !Sync for ListenerError<'a>
impl<'a> Unpin for ListenerError<'a>
impl<'a> !UnwindSafe for ListenerError<'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