[][src]Enum udp_hole_punching::server::swap_cmd::SwapCmd

pub enum SwapCmd {
    None,
    Save,
    Ask,
    Open,
    ServerErr,
    P2P,
    Got,
    Hello,
}

Variants

None
Save
Ask
Open
ServerErr
P2P
Got
Hello

Implementations

impl SwapCmd[src]

pub fn int2enum(i: u8) -> Self[src]

pub fn enum2int(&self) -> u8[src]

pub fn ask(id: &str) -> Vec<u8>[src]

pub fn save(id: &str) -> Vec<u8>[src]

pub fn open(id: &str) -> Vec<u8>[src]

pub fn from_server(&self) -> bool[src]

Trait Implementations

impl Clone for SwapCmd[src]

impl Copy for SwapCmd[src]

impl Debug for SwapCmd[src]

impl Eq for SwapCmd[src]

impl Hash for SwapCmd[src]

impl PartialEq<SwapCmd> for SwapCmd[src]

impl StructuralEq for SwapCmd[src]

impl StructuralPartialEq for SwapCmd[src]

Auto Trait Implementations

impl RefUnwindSafe for SwapCmd

impl Send for SwapCmd

impl Sync for SwapCmd

impl Unpin for SwapCmd

impl UnwindSafe for SwapCmd

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> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,