#[repr(u32)]pub enum OnTerminate {
None = 0,
Reboot = 1,
}
Expand description
Describes the action to take if this component instance terminates unexpectedly.
Variants§
Trait Implementations§
Source§impl Clone for OnTerminate
impl Clone for OnTerminate
Source§fn clone(&self) -> OnTerminate
fn clone(&self) -> OnTerminate
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 OnTerminate
impl Debug for OnTerminate
Source§impl Encodable for OnTerminate
impl Encodable for OnTerminate
Source§type Encoded = WireOnTerminate
type Encoded = WireOnTerminate
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl<___E> Encode<___E> for OnTerminatewhere
___E: ?Sized,
impl<___E> Encode<___E> for OnTerminatewhere
___E: ?Sized,
Source§impl<___E> EncodeRef<___E> for OnTerminatewhere
___E: ?Sized,
impl<___E> EncodeRef<___E> for OnTerminatewhere
___E: ?Sized,
Source§fn encode_ref(
&self,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, encoder: &mut ___E, out: &mut MaybeUninit<Self::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
Source§impl From<OnTerminate> for OnTerminate
impl From<OnTerminate> for OnTerminate
Source§fn from(from: OnTerminate) -> Self
fn from(from: OnTerminate) -> Self
Converts to this type from the input type.
Source§impl From<OnTerminate> for WireOnTerminate
impl From<OnTerminate> for WireOnTerminate
Source§fn from(natural: OnTerminate) -> Self
fn from(natural: OnTerminate) -> Self
Converts to this type from the input type.
Source§impl From<WireOnTerminate> for OnTerminate
impl From<WireOnTerminate> for OnTerminate
Source§fn from(wire: WireOnTerminate) -> Self
fn from(wire: WireOnTerminate) -> Self
Converts to this type from the input type.
Source§impl FromWire<WireOnTerminate> for OnTerminate
impl FromWire<WireOnTerminate> for OnTerminate
Source§fn from_wire(wire: WireOnTerminate) -> Self
fn from_wire(wire: WireOnTerminate) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<WireOnTerminate> for OnTerminate
impl FromWireRef<WireOnTerminate> for OnTerminate
Source§fn from_wire_ref(wire: &WireOnTerminate) -> Self
fn from_wire_ref(wire: &WireOnTerminate) -> Self
Converts the given
wire
reference to this type.Source§impl PartialEq for OnTerminate
impl PartialEq for OnTerminate
Source§impl TryFrom<u32> for OnTerminate
impl TryFrom<u32> for OnTerminate
impl Copy for OnTerminate
impl Eq for OnTerminate
impl StructuralPartialEq for OnTerminate
Auto Trait Implementations§
impl Freeze for OnTerminate
impl RefUnwindSafe for OnTerminate
impl Send for OnTerminate
impl Sync for OnTerminate
impl Unpin for OnTerminate
impl UnwindSafe for OnTerminate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.