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

pub struct XorMappedAddress(_);

XOR-MAPPED-ADDRESS attribute.

See RFC 5389 -- 15.2. XOR-MAPPED-ADDRESS about this attribute.

Methods

impl XorMappedAddress
[src]

CODEPOINT: u16 = 32

The codepoint of the type of the attribute.

Makes a new XorMappedAddress instance.

Returns the address of this instance.

Trait Implementations

impl Debug for XorMappedAddress
[src]

Formats the value using the given formatter. Read more

impl Clone for XorMappedAddress
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for XorMappedAddress
[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 XorMappedAddress
[src]

impl Hash for XorMappedAddress
[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 XorMappedAddress
[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<XorMappedAddress> for Attribute
[src]

Performs the conversion.

impl TryAsRef<XorMappedAddress> for Attribute
[src]

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

Auto Trait Implementations