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§
Auto Trait Implementations§
impl !RefUnwindSafe for OutboundProbeEvent
impl Send for OutboundProbeEvent
impl Sync for OutboundProbeEvent
impl Unpin for OutboundProbeEvent
impl !UnwindSafe for OutboundProbeEvent
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