#[repr(u32)]pub enum Durability {
Transient = 2,
SingleRun = 3,
}
Expand description
The durability of component instances created in a collection.
Variants§
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
Source§fn clone(&self) -> Durability
fn clone(&self) -> Durability
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 Durability
impl Debug for Durability
Source§impl Encodable for Durability
impl Encodable for Durability
Source§type Encoded = WireDurability
type Encoded = WireDurability
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<___E> Encode<___E> for Durabilitywhere
___E: ?Sized,
impl<___E> Encode<___E> for Durabilitywhere
___E: ?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 Durability
impl PartialEq for Durability
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 moreimpl Copy for Durability
impl Eq for Durability
impl StructuralPartialEq for Durability
Auto Trait Implementations§
impl Freeze for Durability
impl RefUnwindSafe for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnwindSafe for Durability
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