pub struct WireHashAlgorithm { /* private fields */ }
Expand description
The wire type corresponding to HashAlgorithm
.
Implementations§
Source§impl WireHashAlgorithm
impl WireHashAlgorithm
pub const SHA256: WireHashAlgorithm
pub const SHA512: WireHashAlgorithm
Trait Implementations§
Source§impl Clone for WireHashAlgorithm
impl Clone for WireHashAlgorithm
Source§fn clone(&self) -> WireHashAlgorithm
fn clone(&self) -> WireHashAlgorithm
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 WireHashAlgorithm
impl Debug for WireHashAlgorithm
Source§impl<___D> Decode<___D> for WireHashAlgorithmwhere
___D: ?Sized,
impl<___D> Decode<___D> for WireHashAlgorithmwhere
___D: ?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 WireHashAlgorithm
impl PartialEq for WireHashAlgorithm
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 moreSource§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 moreSource§impl ZeroPadding for WireHashAlgorithm
impl ZeroPadding for WireHashAlgorithm
Source§fn zero_padding(_: &mut MaybeUninit<Self>)
fn zero_padding(_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireHashAlgorithm
impl Eq for WireHashAlgorithm
impl StructuralPartialEq for WireHashAlgorithm
Auto Trait Implementations§
impl Freeze for WireHashAlgorithm
impl RefUnwindSafe for WireHashAlgorithm
impl Send for WireHashAlgorithm
impl Sync for WireHashAlgorithm
impl Unpin for WireHashAlgorithm
impl UnwindSafe for WireHashAlgorithm
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