#[repr(u32)]pub enum StartupMode {
Lazy = 0,
Eager = 1,
}
Expand description
Describes under what conditions the component may be started.
Variants§
Trait Implementations§
Source§impl Clone for StartupMode
impl Clone for StartupMode
Source§fn clone(&self) -> StartupMode
fn clone(&self) -> StartupMode
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 StartupMode
impl Debug for StartupMode
Source§impl Encodable for StartupMode
impl Encodable for StartupMode
Source§type Encoded = WireStartupMode
type Encoded = WireStartupMode
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 StartupModewhere
___E: ?Sized,
impl<___E> Encode<___E> for StartupModewhere
___E: ?Sized,
Source§impl From<StartupMode> for WireStartupMode
impl From<StartupMode> for WireStartupMode
Source§fn from(natural: StartupMode) -> Self
fn from(natural: StartupMode) -> Self
Converts to this type from the input type.
Source§impl From<WireStartupMode> for StartupMode
impl From<WireStartupMode> for StartupMode
Source§fn from(wire: WireStartupMode) -> Self
fn from(wire: WireStartupMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StartupMode
impl PartialEq for StartupMode
Source§impl TakeFrom<WireStartupMode> for StartupMode
impl TakeFrom<WireStartupMode> for StartupMode
Source§fn take_from(from: &WireStartupMode) -> Self
fn take_from(from: &WireStartupMode) -> 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 StartupMode
impl Eq for StartupMode
impl StructuralPartialEq for StartupMode
Auto Trait Implementations§
impl Freeze for StartupMode
impl RefUnwindSafe for StartupMode
impl Send for StartupMode
impl Sync for StartupMode
impl Unpin for StartupMode
impl UnwindSafe for StartupMode
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