Enum stun_codec::rfc5389::AttributeDecoder[][src]

pub enum AttributeDecoder {
    MappedAddress(<MappedAddress as Attribute>::Decoder),
    Username(<Username as Attribute>::Decoder),
    MessageIntegrity(<MessageIntegrity as Attribute>::Decoder),
    ErrorCode(<ErrorCode as Attribute>::Decoder),
    UnknownAttributes(<UnknownAttributes as Attribute>::Decoder),
    Realm(<Realm as Attribute>::Decoder),
    Nonce(<Nonce as Attribute>::Decoder),
    XorMappedAddress(<XorMappedAddress as Attribute>::Decoder),
    XorMappedAddress2(<XorMappedAddress2 as Attribute>::Decoder),
    Software(<Software as Attribute>::Decoder),
    AlternateServer(<AlternateServer as Attribute>::Decoder),
    Fingerprint(<Fingerprint as Attribute>::Decoder),
    None,
}

Attribute set decoder.

Variants

MappedAddress(<MappedAddress as Attribute>::Decoder)
Username(<Username as Attribute>::Decoder)
MessageIntegrity(<MessageIntegrity as Attribute>::Decoder)
ErrorCode(<ErrorCode as Attribute>::Decoder)
UnknownAttributes(<UnknownAttributes as Attribute>::Decoder)
Realm(<Realm as Attribute>::Decoder)
Nonce(<Nonce as Attribute>::Decoder)
XorMappedAddress(<XorMappedAddress as Attribute>::Decoder)
XorMappedAddress2(<XorMappedAddress2 as Attribute>::Decoder)
Software(<Software as Attribute>::Decoder)
AlternateServer(<AlternateServer as Attribute>::Decoder)
Fingerprint(<Fingerprint 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.