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
§
address: Multiaddr
The address at which the remote succeeded to dial us.
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 moresource§impl Debug for OutboundProbeEvent
impl Debug for OutboundProbeEvent
source§impl PartialEq<OutboundProbeEvent> for OutboundProbeEvent
impl PartialEq<OutboundProbeEvent> for OutboundProbeEvent
source§fn eq(&self, other: &OutboundProbeEvent) -> bool
fn eq(&self, other: &OutboundProbeEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.