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

pub struct Realm { /* fields omitted */ }

REALM attribute.

See RFC 5389 -- 15.7. REALM about this attribute.

TODO

  • Support SASLprep [RFC 4013]

Methods

impl Realm
[src]

CODEPOINT: u16 = 20

The codepoint of the type of the attribute.

Makes a new Realm instance.

Errors

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

Returns the text of this instance.

Trait Implementations

impl Debug for Realm
[src]

Formats the value using the given formatter. Read more

impl Clone for Realm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

impl TryAsRef<Realm> for Attribute
[src]

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

Auto Trait Implementations

impl Send for Realm

impl Sync for Realm