pub enum BootCommand {
STOP_AND_WAIT = 0,
INSTALL_UPGRADE = 1,
}
Variants§
Trait Implementations§
source§impl Clone for BootCommand
impl Clone for BootCommand
source§fn clone(&self) -> BootCommand
fn clone(&self) -> BootCommand
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 BootCommand
impl Debug for BootCommand
source§impl Default for BootCommand
impl Default for BootCommand
source§impl Enum for BootCommand
impl Enum for BootCommand
source§fn from_i32(value: i32) -> Option<BootCommand>
fn from_i32(value: i32) -> Option<BootCommand>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<BootCommand>
fn from_str(str: &str) -> Option<BootCommand>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [BootCommand] = _
const VALUES: &'static [BootCommand] = _
All enum values for enum type.
source§impl EnumFull for BootCommand
impl EnumFull for BootCommand
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for BootCommand
impl Hash for BootCommand
source§impl PartialEq for BootCommand
impl PartialEq for BootCommand
source§fn eq(&self, other: &BootCommand) -> bool
fn eq(&self, other: &BootCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BootCommand
impl Eq for BootCommand
impl StructuralPartialEq for BootCommand
Auto Trait Implementations§
impl Freeze for BootCommand
impl RefUnwindSafe for BootCommand
impl Send for BootCommand
impl Sync for BootCommand
impl Unpin for BootCommand
impl UnwindSafe for BootCommand
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)