Enum libp2p_autonat::InboundProbeEvent
source · [−]pub enum InboundProbeEvent {
Request {
probe_id: ProbeId,
peer: PeerId,
addresses: Vec<Multiaddr>,
},
Response {
probe_id: ProbeId,
peer: PeerId,
address: Multiaddr,
},
Error {
probe_id: ProbeId,
peer: PeerId,
error: InboundProbeError,
},
}
Variants
Request
Fields
probe_id: ProbeId
peer: PeerId
Peer that sent the request.
addresses: Vec<Multiaddr>
The addresses that will be attempted to dial.
A dial-back request was received from a remote peer.
Response
A dial request to the remote was successful.
Error
The inbound request failed, was rejected, or none of the remote’s addresses could be dialed.
Trait Implementations
sourceimpl Clone for InboundProbeEvent
impl Clone for InboundProbeEvent
sourcefn clone(&self) -> InboundProbeEvent
fn clone(&self) -> InboundProbeEvent
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 InboundProbeEvent
impl Debug for InboundProbeEvent
sourceimpl PartialEq<InboundProbeEvent> for InboundProbeEvent
impl PartialEq<InboundProbeEvent> for InboundProbeEvent
sourcefn eq(&self, other: &InboundProbeEvent) -> bool
fn eq(&self, other: &InboundProbeEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for InboundProbeEvent
impl StructuralEq for InboundProbeEvent
impl StructuralPartialEq for InboundProbeEvent
Auto Trait Implementations
impl RefUnwindSafe for InboundProbeEvent
impl Send for InboundProbeEvent
impl Sync for InboundProbeEvent
impl Unpin for InboundProbeEvent
impl UnwindSafe for InboundProbeEvent
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