pub struct PasswordAlgorithm {
pub algorithm: u16,
pub parameters: Vec<u8>,
}Expand description
One entry of the STUN Password Algorithms registry with its parameters: the value of
PASSWORD-ALGORITHM, and an element of PASSWORD-ALGORITHMS.
Fields§
§algorithm: u16The algorithm number (PASSWORD_ALGORITHM_MD5, PASSWORD_ALGORITHM_SHA256).
parameters: Vec<u8>The algorithm’s parameters; empty for MD5 and SHA-256.
Implementations§
Trait Implementations§
Source§impl Clone for PasswordAlgorithm
impl Clone for PasswordAlgorithm
Source§impl Debug for PasswordAlgorithm
impl Debug for PasswordAlgorithm
Source§impl Default for PasswordAlgorithm
impl Default for PasswordAlgorithm
Source§impl Display for PasswordAlgorithm
impl Display for PasswordAlgorithm
impl Eq for PasswordAlgorithm
Source§impl Getter for PasswordAlgorithm
impl Getter for PasswordAlgorithm
Source§impl PartialEq for PasswordAlgorithm
impl PartialEq for PasswordAlgorithm
Source§impl Setter for PasswordAlgorithm
impl Setter for PasswordAlgorithm
impl StructuralPartialEq for PasswordAlgorithm
Auto Trait Implementations§
impl Forget for PasswordAlgorithm
impl Freeze for PasswordAlgorithm
impl Move for PasswordAlgorithm
impl RefUnwindSafe for PasswordAlgorithm
impl Send for PasswordAlgorithmwhere
RawVecInner: Send,
impl Sync for PasswordAlgorithmwhere
RawVecInner: Sync,
impl Unpin for PasswordAlgorithm
impl UnsafeUnpin for PasswordAlgorithm
impl UnwindSafe for PasswordAlgorithmwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more