Enum stun_rs::AlgorithmId
source · [−]pub enum AlgorithmId {
Reserved,
MD5,
SHA256,
Unassigned(u16),
}Expand description
Variants
Reserved
Reserved
MD5
The MD5 (message-digest algorithm) hashing algorithm is a one-way cryptographic function that accepts a message of any length as input and returns as output a fixed-length digest value to be used for authenticating the original message.
SHA256
SHA256 is a part of the SHA 2 family of algorithms. It stands for Secure Hash Algorithm 256-bit and it is used for cryptographic security.
Unassigned(u16)
Unassigned
Trait Implementations
sourceimpl Clone for AlgorithmId
impl Clone for AlgorithmId
sourcefn clone(&self) -> AlgorithmId
fn clone(&self) -> AlgorithmId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AlgorithmId
impl Debug for AlgorithmId
sourceimpl Display for AlgorithmId
impl Display for AlgorithmId
sourceimpl From<AlgorithmId> for Algorithm
impl From<AlgorithmId> for Algorithm
sourcefn from(algorithm: AlgorithmId) -> Self
fn from(algorithm: AlgorithmId) -> Self
Converts to this type from the input type.
sourceimpl From<AlgorithmId> for u16
impl From<AlgorithmId> for u16
sourcefn from(val: AlgorithmId) -> Self
fn from(val: AlgorithmId) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for AlgorithmId
impl From<u16> for AlgorithmId
sourceimpl PartialEq<AlgorithmId> for AlgorithmId
impl PartialEq<AlgorithmId> for AlgorithmId
sourcefn eq(&self, other: &AlgorithmId) -> bool
fn eq(&self, other: &AlgorithmId) -> bool
impl Copy for AlgorithmId
impl Eq for AlgorithmId
impl StructuralEq for AlgorithmId
impl StructuralPartialEq for AlgorithmId
Auto Trait Implementations
impl RefUnwindSafe for AlgorithmId
impl Send for AlgorithmId
impl Sync for AlgorithmId
impl Unpin for AlgorithmId
impl UnwindSafe for AlgorithmId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more