Struct libp2p_swarm::behaviour::DialFailure
source · pub struct DialFailure<'a, Handler> {
pub peer_id: Option<PeerId>,
pub handler: Handler,
pub error: &'a DialError,
}
Expand description
FromSwarm
variant that informs the behaviour that the dial to a known
or unknown node failed.
Fields§
§peer_id: Option<PeerId>
§handler: Handler
§error: &'a DialError
Trait Implementations§
source§impl<'a, Handler: Clone> Clone for DialFailure<'a, Handler>
impl<'a, Handler: Clone> Clone for DialFailure<'a, Handler>
source§fn clone(&self) -> DialFailure<'a, Handler>
fn clone(&self) -> DialFailure<'a, Handler>
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, Handler: Copy> Copy for DialFailure<'a, Handler>
Auto Trait Implementations§
impl<'a, Handler> !RefUnwindSafe for DialFailure<'a, Handler>
impl<'a, Handler> Send for DialFailure<'a, Handler>where Handler: Send,
impl<'a, Handler> Sync for DialFailure<'a, Handler>where Handler: Sync,
impl<'a, Handler> Unpin for DialFailure<'a, Handler>where Handler: Unpin,
impl<'a, Handler> !UnwindSafe for DialFailure<'a, Handler>
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