Struct stun_codec::rfc5766::attributes::XorPeerAddress[][src]

pub struct XorPeerAddress(_);

XOR-PEER-ADDRESS attribute.

See RFC 5766 -- 14.3. XOR-PEER-ADDRESS about this attribute.

Implementations

impl XorPeerAddress[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

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

Makes a new XorPeerAddress instance.

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

Returns the address specified by the attribute.

Trait Implementations

impl Attribute for XorPeerAddress[src]

type Decoder = XorPeerAddressDecoder

The decoder of the value part of the attribute.

type Encoder = XorPeerAddressEncoder

The encoder of the value part of the attribute.

impl Clone for XorPeerAddress[src]

impl Debug for XorPeerAddress[src]

impl Eq for XorPeerAddress[src]

impl From<XorPeerAddress> for Attribute[src]

impl Hash for XorPeerAddress[src]

impl PartialEq<XorPeerAddress> for XorPeerAddress[src]

impl StructuralEq for XorPeerAddress[src]

impl StructuralPartialEq for XorPeerAddress[src]

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