#[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> = _
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 OnTerminatewhere
___E: ?Sized,
impl<___E> Encode<___E> for OnTerminatewhere
___E: ?Sized,
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 PartialEq for OnTerminate
impl PartialEq for OnTerminate
Source§impl TakeFrom<WireOnTerminate> for OnTerminate
impl TakeFrom<WireOnTerminate> for OnTerminate
Source§fn take_from(from: &WireOnTerminate) -> Self
fn take_from(from: &WireOnTerminate) -> 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 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