Struct stun_codec::rfc5780::attributes::OtherAddress[][src]

pub struct OtherAddress(_);

OTHER-ADDRESS attribute.

See RFC 5780 -- 7.4. OTHER-ADDRESS about this attribute.

Implementations

impl OtherAddress[src]

pub const CODEPOINT: u16[src]

The codepoint of the tyep of the attribute.

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

Makes a new OtherAddress instance.

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

Returns the address of this instance.

Trait Implementations

impl Attribute for OtherAddress[src]

type Decoder = OtherAddressDecoder

The decoder of the value part of the attribute.

type Encoder = OtherAddressEncoder

The encoder of the value part of the attribute.

impl Clone for OtherAddress[src]

impl Debug for OtherAddress[src]

impl Eq for OtherAddress[src]

impl From<OtherAddress> for Attribute[src]

impl Hash for OtherAddress[src]

impl PartialEq<OtherAddress> for OtherAddress[src]

impl StructuralEq for OtherAddress[src]

impl StructuralPartialEq for OtherAddress[src]

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