Enum libp2p::autonat::OutboundProbeEvent
source · pub enum OutboundProbeEvent {
Request {
probe_id: ProbeId,
peer: PeerId,
},
Response {
probe_id: ProbeId,
peer: PeerId,
address: Multiaddr,
},
Error {
probe_id: ProbeId,
peer: Option<PeerId>,
error: OutboundProbeError,
},
}
Variants§
Request
A dial-back request was sent to a remote peer.
Response
Fields
The remote successfully dialed one of our addresses.
Error
Fields
§
peer: Option<PeerId>
Id of the peer used for the probe.
None
if the probe was aborted due to no addresses or no qualified server.
§
error: OutboundProbeError
The outbound request failed, was rejected, or the remote could dial none of our addresses.
Trait Implementations§
source§impl Clone for OutboundProbeEvent
impl Clone for OutboundProbeEvent
source§fn clone(&self) -> OutboundProbeEvent
fn clone(&self) -> OutboundProbeEvent
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