#[repr(u8)]pub enum HashAlgorithm {
Sha256 = 1,
Sha512 = 2,
UnknownOrdinal_(u8),
}
Expand description
Denotes which hash algorithm is used to build the merkle tree for fsverity-enabled files.
Variants§
Trait Implementations§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
Source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 HashAlgorithm
impl Debug for HashAlgorithm
Source§impl Encodable for HashAlgorithm
impl Encodable for HashAlgorithm
Source§type Encoded = WireHashAlgorithm
type Encoded = WireHashAlgorithm
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for HashAlgorithmwhere
___E: ?Sized,
impl<___E> Encode<___E> for HashAlgorithmwhere
___E: ?Sized,
Source§impl From<HashAlgorithm> for WireHashAlgorithm
impl From<HashAlgorithm> for WireHashAlgorithm
Source§fn from(natural: HashAlgorithm) -> Self
fn from(natural: HashAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<WireHashAlgorithm> for HashAlgorithm
impl From<WireHashAlgorithm> for HashAlgorithm
Source§fn from(wire: WireHashAlgorithm) -> Self
fn from(wire: WireHashAlgorithm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
Source§impl TakeFrom<WireHashAlgorithm> for HashAlgorithm
impl TakeFrom<WireHashAlgorithm> for HashAlgorithm
Source§fn take_from(from: &WireHashAlgorithm) -> Self
fn take_from(from: &WireHashAlgorithm) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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