Enum tink_proto::HashType
source · [−]#[repr(i32)]
pub enum HashType {
UnknownHash,
Sha1,
Sha384,
Sha256,
Sha512,
Sha224,
}
Variants
UnknownHash
Sha1
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
Sha384
fine.
Sha256
Sha512
Sha224
Implementations
Trait Implementations
sourceimpl Ord for HashType
impl Ord for HashType
sourceimpl PartialOrd<HashType> for HashType
impl PartialOrd<HashType> for HashType
sourcefn partial_cmp(&self, other: &HashType) -> Option<Ordering>
fn partial_cmp(&self, other: &HashType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for HashType
impl Eq for HashType
impl StructuralEq for HashType
impl StructuralPartialEq for HashType
Auto Trait Implementations
impl RefUnwindSafe for HashType
impl Send for HashType
impl Sync for HashType
impl Unpin for HashType
impl UnwindSafe for HashType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more