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

pub struct Data(_);

DATA attribute.

See RFC 5766 -- 14.4. DATA about this attribute.

Methods

impl Data
[src]

CODEPOINT: u16 = 19

The codepoint of the type of the attribute.

Makes a new Data instance.

Errors

If the length of data is greater than 0xFFFF, this function will return an ErrorKind::InvalidInput error.

Returns a reference the data held by the attribute.

Trait Implementations

impl Debug for Data
[src]

Formats the value using the given formatter. Read more

impl Clone for Data
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

impl TryAsRef<Data> for Attribute
[src]

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

Auto Trait Implementations

impl Send for Data

impl Sync for Data