[][src]Enum ninat::NatType

pub enum NatType {
    A,
    B,
    C,
    D,
    F,
}

Enumeration of NAT types.

Variants

A

Represents the NAT Type A.

B

Represents the NAT Type B.

C

Represents the NAT Type C.

D

Represents the NAT Type D.

F

Represents the NAT Type F.

Implementations

impl NatType[src]

pub fn nintendo(&self) -> String[src]

Returns the Nintendo (Nintendo Switch) NAT type.

pub fn sony(&self) -> String[src]

Returns the Sony (PlayStation) NAT type.

pub fn microsoft(&self) -> String[src]

Returns the Microsoft (Xbox) NAT type.

Trait Implementations

impl Clone for NatType[src]

impl Copy for NatType[src]

impl Debug for NatType[src]

impl Display for NatType[src]

impl Eq for NatType[src]

impl Ord for NatType[src]

impl PartialEq<NatType> for NatType[src]

impl PartialOrd<NatType> for NatType[src]

impl StructuralEq for NatType[src]

impl StructuralPartialEq for NatType[src]

Auto Trait Implementations

impl RefUnwindSafe for NatType

impl Send for NatType

impl Sync for NatType

impl Unpin for NatType

impl UnwindSafe for NatType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.