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

pub struct Username { /* fields omitted */ }

USERNAME attribute.

See RFC 5389 -- 15.3. USERNAME about this attribute.

TODO

  • Support SASLprep [RFC 4013]

Methods

impl Username
[src]

CODEPOINT: u16 = 6

The codepoint of the type of the attribute.

Makes a new Username instance.

Errors

The length of name must be less then 513 bytes. If it is too long, this will return an ErrorKind::InvalidInput error.

Returns the name of this instance.

Trait Implementations

impl Debug for Username
[src]

Formats the value using the given formatter. Read more

impl Clone for Username
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

impl TryAsRef<Username> for Attribute
[src]

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

Auto Trait Implementations

impl Send for Username

impl Sync for Username