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§
source§impl Clone for AlgorithmId
impl Clone for AlgorithmId
source§fn clone(&self) -> AlgorithmId
fn clone(&self) -> AlgorithmId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AlgorithmId
impl Debug for AlgorithmId
source§impl Display for AlgorithmId
impl Display for AlgorithmId
source§impl From<AlgorithmId> for Algorithm
impl From<AlgorithmId> for Algorithm
source§fn from(algorithm: AlgorithmId) -> Self
fn from(algorithm: AlgorithmId) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmId> for u16
impl From<AlgorithmId> for u16
source§fn from(val: AlgorithmId) -> Self
fn from(val: AlgorithmId) -> Self
Converts to this type from the input type.
source§impl From<u16> for AlgorithmId
impl From<u16> for AlgorithmId
source§impl PartialEq for AlgorithmId
impl PartialEq for AlgorithmId
impl Copy for AlgorithmId
impl Eq for AlgorithmId
impl StructuralPartialEq for AlgorithmId
Auto Trait Implementations§
impl Freeze for AlgorithmId
impl RefUnwindSafe for AlgorithmId
impl Send for AlgorithmId
impl Sync for AlgorithmId
impl Unpin for AlgorithmId
impl UnwindSafe for AlgorithmId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)