[][src]Enum tox_packet::ip_port::ProtocolType

pub enum ProtocolType {
    UDP,
    TCP,
}

Transport protocol type: UDP or TCP.

The binary representation of ProtocolType is a single bit: 0 for UDP, 1 for TCP. If encoded as standalone value, the bit is stored in the least significant bit of a byte.

Variants

UDP

UDP type if the least significant bit is 0.

TCP

TCP type if the least significant bit is 1.

Trait Implementations

impl Clone for ProtocolType[src]

impl Copy for ProtocolType[src]

impl Debug for ProtocolType[src]

impl Eq for ProtocolType[src]

impl PartialEq<ProtocolType> for ProtocolType[src]

impl StructuralEq for ProtocolType[src]

impl StructuralPartialEq for ProtocolType[src]

Auto Trait Implementations

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, 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.