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 more