#[non_exhaustive]pub enum Algorithm {
Sha256Crypt,
Sha512Crypt,
}Available on crate feature
password-hash only.Expand description
SHA-crypt algorithm variants: SHA-256 or SHA-512.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sha256Crypt
SHA-256-crypt: SHA-crypt instantiated with SHA-256.
Sha512Crypt
SHA-512-crypt: SHA-crypt instantiated with SHA-512.
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub const SHA256_CRYPT_IDENT: &str = "5"
pub const SHA256_CRYPT_IDENT: &str = "5"
SHA-256-crypt Modular Crypt Format algorithm identifier
Sourcepub const SHA512_CRYPT_IDENT: &str = "6"
pub const SHA512_CRYPT_IDENT: &str = "6"
SHA-512-crypt Modular Crypt Format algorithm identifier
Trait Implementations§
Source§impl Ord for Algorithm
impl Ord for Algorithm
Source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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