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

pub struct AlternateServer(_);

ALTERNATE-SERVER attribute.

See RFC 5389 -- 15.11. ALTERNATE-SERVER about this attribute.

Implementations

impl AlternateServer[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

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

Makes a new AlternateServer instance.

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

Returns the alternate address.

Trait Implementations

impl Attribute for AlternateServer[src]

type Decoder = AlternateServerDecoder

The decoder of the value part of the attribute.

type Encoder = AlternateServerEncoder

The encoder of the value part of the attribute.

impl Clone for AlternateServer[src]

impl Debug for AlternateServer[src]

impl Eq for AlternateServer[src]

impl From<AlternateServer> for Attribute[src]

impl Hash for AlternateServer[src]

impl PartialEq<AlternateServer> for AlternateServer[src]

impl StructuralEq for AlternateServer[src]

impl StructuralPartialEq for AlternateServer[src]

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