pub enum CryptoAlgorithm {
Hash,
Signature,
Encryption,
KeyAgreement,
KeyDerivation,
Unknown,
}Expand description
Broad cryptographic algorithm category labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CryptoAlgorithm
impl Clone for CryptoAlgorithm
Source§fn clone(&self) -> CryptoAlgorithm
fn clone(&self) -> CryptoAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CryptoAlgorithm
impl Debug for CryptoAlgorithm
Source§impl Display for CryptoAlgorithm
impl Display for CryptoAlgorithm
Source§impl FromStr for CryptoAlgorithm
impl FromStr for CryptoAlgorithm
Source§type Err = CryptoParseError
type Err = CryptoParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<CryptoAlgorithm, <CryptoAlgorithm as FromStr>::Err>
fn from_str( input: &str, ) -> Result<CryptoAlgorithm, <CryptoAlgorithm as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CryptoAlgorithm
impl Hash for CryptoAlgorithm
Source§impl Ord for CryptoAlgorithm
impl Ord for CryptoAlgorithm
Source§fn cmp(&self, other: &CryptoAlgorithm) -> Ordering
fn cmp(&self, other: &CryptoAlgorithm) -> Ordering
1.21.0 (const: unstable) · 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 CryptoAlgorithm
impl PartialEq for CryptoAlgorithm
Source§fn eq(&self, other: &CryptoAlgorithm) -> bool
fn eq(&self, other: &CryptoAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CryptoAlgorithm
impl PartialOrd for CryptoAlgorithm
impl Copy for CryptoAlgorithm
impl Eq for CryptoAlgorithm
impl StructuralPartialEq for CryptoAlgorithm
Auto Trait Implementations§
impl Freeze for CryptoAlgorithm
impl RefUnwindSafe for CryptoAlgorithm
impl Send for CryptoAlgorithm
impl Sync for CryptoAlgorithm
impl Unpin for CryptoAlgorithm
impl UnsafeUnpin for CryptoAlgorithm
impl UnwindSafe for CryptoAlgorithm
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