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