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