Struct stun_codec::rfc5766::attributes::RequestedTransport[][src]

pub struct RequestedTransport(_);

REQUESTED-TRANSPORT attribute.

See RFC 5766 -- 14.7. REQUESTED-TRANSPORT about this attribute.

Implementations

impl RequestedTransport[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

pub fn new(protocol: u8) -> Self[src]

Makes a new RequestedTransport instance.

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

Returns the transport protocol requested by the client.

Trait Implementations

impl Attribute for RequestedTransport[src]

type Decoder = RequestedTransportDecoder

The decoder of the value part of the attribute.

type Encoder = RequestedTransportEncoder

The encoder of the value part of the attribute.

impl Clone for RequestedTransport[src]

impl Debug for RequestedTransport[src]

impl Eq for RequestedTransport[src]

impl From<RequestedTransport> for Attribute[src]

impl Hash for RequestedTransport[src]

impl PartialEq<RequestedTransport> for RequestedTransport[src]

impl StructuralEq for RequestedTransport[src]

impl StructuralPartialEq for RequestedTransport[src]

impl TryAsRef<RequestedTransport> for Attribute[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.