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 FromWire<WireHashAlgorithm> for HashAlgorithm
impl FromWire<WireHashAlgorithm> for HashAlgorithm
Source§fn from_wire(wire: WireHashAlgorithm) -> Self
fn from_wire(wire: WireHashAlgorithm) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<WireHashAlgorithm> for HashAlgorithm
impl FromWireRef<WireHashAlgorithm> for HashAlgorithm
Source§fn from_wire_ref(wire: &WireHashAlgorithm) -> Self
fn from_wire_ref(wire: &WireHashAlgorithm) -> Self
Converts the given
wire
reference to this type.Source§impl PartialEq for WireHashAlgorithm
impl PartialEq for WireHashAlgorithm
Source§impl Wire for WireHashAlgorithm
impl Wire for WireHashAlgorithm
Source§type Decoded<'de> = WireHashAlgorithm
type Decoded<'de> = WireHashAlgorithm
The decoded wire type, restricted to the
'de
lifetime.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