Enum libp2p_autonat::NatStatus
source · pub enum NatStatus {
Public(Multiaddr),
Private,
Unknown,
}
Expand description
Assumed NAT status.
Variants§
Implementations§
Trait Implementations§
source§impl From<Result<Multiaddr, ResponseError>> for NatStatus
impl From<Result<Multiaddr, ResponseError>> for NatStatus
source§fn from(result: Result<Multiaddr, ResponseError>) -> Self
fn from(result: Result<Multiaddr, ResponseError>) -> Self
Converts to this type from the input type.
source§impl PartialEq<NatStatus> for NatStatus
impl PartialEq<NatStatus> for NatStatus
impl Eq for NatStatus
impl StructuralEq for NatStatus
impl StructuralPartialEq for NatStatus
Auto Trait Implementations§
impl RefUnwindSafe for NatStatus
impl Send for NatStatus
impl Sync for NatStatus
impl Unpin for NatStatus
impl UnwindSafe for NatStatus
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