pub enum AutoNAT {
Public,
NAT,
Unknown,
}
Expand description
A variant for autonat protocol state.
Variants§
Public
the node is a public node.
NAT
the node is behind nat/firewall.
Unknown
Cannot determine if the node is behind nat/firewall
Trait Implementations§
source§impl Ord for AutoNAT
impl Ord for AutoNAT
source§impl PartialOrd for AutoNAT
impl PartialOrd for AutoNAT
impl Copy for AutoNAT
impl Eq for AutoNAT
impl StructuralPartialEq for AutoNAT
Auto Trait Implementations§
impl Freeze for AutoNAT
impl RefUnwindSafe for AutoNAT
impl Send for AutoNAT
impl Sync for AutoNAT
impl Unpin for AutoNAT
impl UnwindSafe for AutoNAT
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)