#[repr(transparent)]pub struct AlgorithmId(pub u16);
Expand description
Algorithm identifiers.
These values are defined in the TCG Algorithm Registry.
Tuple Fields§
§0: u16
Implementations§
Source§impl AlgorithmId
impl AlgorithmId
pub const ERROR: AlgorithmId
pub const RSA: AlgorithmId
pub const TDES: AlgorithmId
pub const SHA1: AlgorithmId
pub const HMAC: AlgorithmId
pub const AES: AlgorithmId
pub const MGF1: AlgorithmId
pub const KEYED_HASH: AlgorithmId
pub const XOR: AlgorithmId
pub const SHA256: AlgorithmId
pub const SHA384: AlgorithmId
pub const SHA512: AlgorithmId
pub const NULL: AlgorithmId
pub const SM3_256: AlgorithmId
pub const SM4: AlgorithmId
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 Hash for AlgorithmId
impl Hash for AlgorithmId
Source§impl Ord for AlgorithmId
impl Ord for AlgorithmId
Source§fn cmp(&self, other: &AlgorithmId) -> Ordering
fn cmp(&self, other: &AlgorithmId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlgorithmId
impl PartialEq for AlgorithmId
Source§impl PartialOrd for AlgorithmId
impl PartialOrd 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