[][src]Enum protosocks::Ver

#[repr(u8)]pub enum Ver {
    SOCKS4,
    SOCKS5,
}

Variants

SOCKS4
SOCKS5

Trait Implementations

impl Clone for Ver[src]

impl Copy for Ver[src]

impl Debug for Ver[src]

impl<'de> Deserialize<'de> for Ver[src]

impl Display for Ver[src]

impl Eq for Ver[src]

impl Error for Ver where
    Self: Debug + Display
[src]

impl ErrorCompat for Ver[src]

impl From<Ver> for u8[src]

impl FromPrimitive for Ver[src]

impl Hash for Ver[src]

impl<'_> Into<u8> for &'_ Ver[src]

impl PartialEq<Ver> for Ver[src]

impl Serialize for Ver[src]

impl StructuralEq for Ver[src]

impl StructuralPartialEq for Ver[src]

impl TryFrom<u8> for Ver[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Ver

impl Send for Ver

impl Sync for Ver

impl Unpin for Ver

impl UnwindSafe for Ver

Blanket Implementations

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.