pub enum ConfigChecksum {
Sha256([u8; 32]),
UnknownOrdinal_(u64),
}
Expand description
The checksum produced for a configuration interface. Two configuration interfaces are the same if their checksums are the same.
Variants§
Trait Implementations§
Source§impl Clone for ConfigChecksum
impl Clone for ConfigChecksum
Source§fn clone(&self) -> ConfigChecksum
fn clone(&self) -> ConfigChecksum
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 ConfigChecksum
impl Debug for ConfigChecksum
Source§impl Encodable for ConfigChecksum
impl Encodable for ConfigChecksum
Source§type Encoded = WireConfigChecksum
type Encoded = WireConfigChecksum
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 EncodableOption for Box<ConfigChecksum>
impl EncodableOption for Box<ConfigChecksum>
Source§type EncodedOption = WireOptionalConfigChecksum
type EncodedOption = WireOptionalConfigChecksum
The wire type for the optional value.
Source§impl<___E> Encode<___E> for ConfigChecksumwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for ConfigChecksumwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<ConfigChecksum>where
___E: ?Sized,
ConfigChecksum: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<ConfigChecksum>where
___E: ?Sized,
ConfigChecksum: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireConfigChecksum> for ConfigChecksum
impl TakeFrom<WireConfigChecksum> for ConfigChecksum
Source§fn take_from(from: &WireConfigChecksum) -> Self
fn take_from(from: &WireConfigChecksum) -> 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 moreAuto Trait Implementations§
impl Freeze for ConfigChecksum
impl RefUnwindSafe for ConfigChecksum
impl Send for ConfigChecksum
impl Sync for ConfigChecksum
impl Unpin for ConfigChecksum
impl UnwindSafe for ConfigChecksum
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