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

pub struct MessageIntegrity { /* fields omitted */ }

MESSAGE-INTEGRITY attribute.

See RFC 5389 -- 15.3. MESSAGE-INTEGRITY about this attribute.

TODO

  • Support SASLprep

Methods

impl MessageIntegrity
[src]

CODEPOINT: u16 = 8

The codepoint of the type of the attribute.

Makes a new MessageIntegrity instance for short-term credentials.

Makes a new MessageIntegrity instance for long-term credentials.

Checks whether this has the valid short-term credential for password.

Checks whether this has the valid long-term credential for password.

Returns the HMAC-SHA1 of this instance.

Trait Implementations

impl Debug for MessageIntegrity
[src]

Formats the value using the given formatter. Read more

impl Clone for MessageIntegrity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Hash for MessageIntegrity
[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 MessageIntegrity
[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 after decoding the attribute and before being appended to the given message. Read more

This method is called before encoding the attribute. Read more

impl From<MessageIntegrity> for Attribute
[src]

Performs the conversion.

impl TryAsRef<MessageIntegrity> for Attribute
[src]

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

Auto Trait Implementations