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

pub struct EvenPort(_);

EVEN-PORT attribute.

See RFC 5766 -- 14.6. EVEN-PORT about this attribute.

Implementations

impl EvenPort[src]

pub const CODEPOINT: u16[src]

The codepoint of the type of the attribute.

pub fn new(is_requested: bool) -> Self[src]

Makes a new EvenPort instance.

pub fn is_requested(&self) -> bool[src]

Returns whether the client requested that the port in the relayed transport address be even.

Trait Implementations

impl Attribute for EvenPort[src]

type Decoder = EvenPortDecoder

The decoder of the value part of the attribute.

type Encoder = EvenPortEncoder

The encoder of the value part of the attribute.

impl Clone for EvenPort[src]

impl Debug for EvenPort[src]

impl Eq for EvenPort[src]

impl From<EvenPort> for Attribute[src]

impl Hash for EvenPort[src]

impl PartialEq<EvenPort> for EvenPort[src]

impl StructuralEq for EvenPort[src]

impl StructuralPartialEq for EvenPort[src]

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