Enum stun_codec::rfc5780::AttributeDecoder[][src]

pub enum AttributeDecoder {
    ChangeRequest(<ChangeRequest as Attribute>::Decoder),
    ResponseOrigin(<ResponseOrigin as Attribute>::Decoder),
    ResponsePort(<ResponsePort as Attribute>::Decoder),
    OtherAddress(<OtherAddress as Attribute>::Decoder),
    None,
}

Attribute set decoder.

Variants

ChangeRequest(<ChangeRequest as Attribute>::Decoder)
ResponseOrigin(<ResponseOrigin as Attribute>::Decoder)
ResponsePort(<ResponsePort as Attribute>::Decoder)
OtherAddress(<OtherAddress as Attribute>::Decoder)
None

Implementations

impl AttributeDecoder[src]

pub fn new() -> Self[src]

Makes a new decoder instance.

Trait Implementations

impl Debug for AttributeDecoder[src]

impl Decode for AttributeDecoder[src]

type Item = Attribute

The type of items to be decoded.

impl Default for AttributeDecoder[src]

impl TryTaggedDecode for AttributeDecoder[src]

type Tag = AttributeType

The type of tags prefixed to the items to be decoded.

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> DecodeExt for T where
    T: Decode
[src]

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

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

impl<T> IoDecodeExt for T where
    T: Decode
[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.