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

pub struct EvenPort(_);

EVEN-PORT attribute.

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

Methods

impl EvenPort
[src]

CODEPOINT: u16 = 24

The codepoint of the type of the attribute.

Makes a new EvenPort instance.

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

Trait Implementations

impl Debug for EvenPort
[src]

Formats the value using the given formatter. Read more

impl Clone for EvenPort
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for EvenPort
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for EvenPort
[src]

impl Hash for EvenPort
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Attribute for EvenPort
[src]

The decoder of the value part of the attribute.

The encoder of the value part of the attribute.

Returns the type of the attribute.

This method is called before encoding the attribute. Read more

This method is called after decoding the attribute and before being appended to the given message. Read more

impl From<EvenPort> for Attribute
[src]

Performs the conversion.

impl TryAsRef<EvenPort> for Attribute
[src]

Attempts to convert self to a reference to T. Read more

Auto Trait Implementations

impl Send for EvenPort

impl Sync for EvenPort