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 DialErrorTrait Implementations§
source§impl<'a, Handler> Clone for DialFailure<'a, Handler>where
Handler: Clone,
impl<'a, Handler> Clone for DialFailure<'a, Handler>where
Handler: Clone,
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