pub struct WireModeType { /* private fields */ }
Expand description
The wire type corresponding to ModeType
.
Trait Implementations§
Source§impl Clone for WireModeType
impl Clone for WireModeType
Source§fn clone(&self) -> WireModeType
fn clone(&self) -> WireModeType
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 WireModeType
impl Debug for WireModeType
Source§impl<___D> Decode<___D> for WireModeTypewhere
___D: ?Sized,
impl<___D> Decode<___D> for WireModeTypewhere
___D: ?Sized,
Source§impl From<ModeType> for WireModeType
impl From<ModeType> for WireModeType
Source§impl From<WireModeType> for ModeType
impl From<WireModeType> for ModeType
Source§fn from(wire: WireModeType) -> Self
fn from(wire: WireModeType) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireModeType> for ModeType
impl TakeFrom<WireModeType> for ModeType
Source§fn take_from(from: &WireModeType) -> Self
fn take_from(from: &WireModeType) -> 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<WireModeType> for ModeType
impl TakeFrom<WireModeType> for ModeType
Source§fn take_from(from: &WireModeType) -> Self
fn take_from(from: &WireModeType) -> 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 WireModeType
impl ZeroPadding for WireModeType
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 WireModeType
Auto Trait Implementations§
impl Freeze for WireModeType
impl RefUnwindSafe for WireModeType
impl Send for WireModeType
impl Sync for WireModeType
impl Unpin for WireModeType
impl UnwindSafe for WireModeType
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