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
The remote successfully dialed one of our addresses.
Error
Fields
probe_id: ProbeId
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
sourceimpl Clone for OutboundProbeEvent
impl Clone for OutboundProbeEvent
sourcefn clone(&self) -> OutboundProbeEvent
fn clone(&self) -> OutboundProbeEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutboundProbeEvent
impl Debug for OutboundProbeEvent
sourceimpl PartialEq<OutboundProbeEvent> for OutboundProbeEvent
impl PartialEq<OutboundProbeEvent> for OutboundProbeEvent
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OutboundProbeEvent) -> bool
fn ne(&self, other: &OutboundProbeEvent) -> bool
This method tests for !=
.
impl StructuralPartialEq for OutboundProbeEvent
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more