Struct stun_codec::rfc5389::attributes::XorMappedAddress2[][src]

pub struct XorMappedAddress2(_);

XOR-MAPPED-ADDRESS attribute with an alternative code.

Such attribute is returned by e.g. "Vovida.org 0.98-CPC" on stun.counterpath.net

Implementations

impl XorMappedAddress2[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

pub fn new(addr: SocketAddr) -> Self[src]

Makes a new XorMappedAddress2 instance.

pub fn address(&self) -> SocketAddr[src]

Returns the address of this instance.

Trait Implementations

impl Attribute for XorMappedAddress2[src]

type Decoder = XorMappedAddress2Decoder

The decoder of the value part of the attribute.

type Encoder = XorMappedAddress2Encoder

The encoder of the value part of the attribute.

impl Clone for XorMappedAddress2[src]

impl Debug for XorMappedAddress2[src]

impl Eq for XorMappedAddress2[src]

impl From<XorMappedAddress2> for Attribute[src]

impl Hash for XorMappedAddress2[src]

impl PartialEq<XorMappedAddress2> for XorMappedAddress2[src]

impl StructuralEq for XorMappedAddress2[src]

impl StructuralPartialEq for XorMappedAddress2[src]

impl TryAsRef<XorMappedAddress2> 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.