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

pub struct Nonce { /* fields omitted */ }

NONCE attribute.

See RFC 5389 -- 15.8. NONCE about this attribute.

TODO

  • Support [RFC 3261] and [RFC 2617]

Methods

impl Nonce
[src]

CODEPOINT: u16 = 21

The codepoint of the type of the attribute.

Makes a new Nonce instance.

Errors

The length of value must be less than 128 characters. If it is too long, this will return an ErrorKind::InvalidInput error.

Returns the value of this instance.

Trait Implementations

impl Debug for Nonce
[src]

Formats the value using the given formatter. Read more

impl Clone for Nonce
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

impl TryAsRef<Nonce> for Attribute
[src]

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

Auto Trait Implementations

impl Send for Nonce

impl Sync for Nonce