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

pub struct MappedAddress(_);

MAPPED-ADDRESS attribute.

See RFC 5389 -- 15.1. MAPPED-ADDRESS about this attribute.

Implementations

impl MappedAddress[src]

pub const CODEPOINT: u16[src]

The codepoint of the tyep of the attribute.

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

Makes a new MappedAddress instance.

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

Returns the address of this instance.

Trait Implementations

impl Attribute for MappedAddress[src]

type Decoder = MappedAddressDecoder

The decoder of the value part of the attribute.

type Encoder = MappedAddressEncoder

The encoder of the value part of the attribute.

impl Clone for MappedAddress[src]

impl Debug for MappedAddress[src]

impl Eq for MappedAddress[src]

impl From<MappedAddress> for Attribute[src]

impl Hash for MappedAddress[src]

impl PartialEq<MappedAddress> for MappedAddress[src]

impl StructuralEq for MappedAddress[src]

impl StructuralPartialEq for MappedAddress[src]

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