pub struct PasswordAlgorithms { /* private fields */ }
Expand description

The PasswordAlgorithms attribute may be present in requests and responses. It contains the list of algorithms that the server can use to derive the long-term password.

Examples

 // Creates an empty password algorithms attribute
 let mut attr = PasswordAlgorithms::default();
 assert_eq!(attr.iter().count(), 0);

 // Adds a password algorithm attribute
 attr.add(PasswordAlgorithm::new(Algorithm::from(AlgorithmId::MD5)));
 assert_eq!(attr.iter().count(), 1);

Implementations

Adds a new password algorithm.

Return the array of password attributes

Returns an iterator over the passwords attributes.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Returns the STUN attribute type.
Returns the STUN attribute type of this instance.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.