#[repr(u8)]pub enum CommandSystem {
SystemDefault = 0,
ForEC = 1,
Otp = 3,
Assd = 4,
Vendor = 14,
}
Expand description
Represents the command system (Group 2) for CMD6
.
Variants§
SystemDefault = 0
Default command system function after boot.
ForEC = 1
Command system function for EC.
Otp = 3
OTP command system function.
Assd = 4
ASSD command system function.
Vendor = 14
Vendor-specific command system function.
Implementations§
Source§impl CommandSystem
impl CommandSystem
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CommandSystem.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a CommandSystem.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a CommandSystem into a u8
.
Trait Implementations§
Source§impl Clone for CommandSystem
impl Clone for CommandSystem
Source§fn clone(&self) -> CommandSystem
fn clone(&self) -> CommandSystem
Returns a duplicate 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 CommandSystem
impl Debug for CommandSystem
Source§impl Default for CommandSystem
impl Default for CommandSystem
Source§impl From<CommandSystem> for u8
impl From<CommandSystem> for u8
Source§fn from(val: CommandSystem) -> Self
fn from(val: CommandSystem) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandSystem
impl PartialEq for CommandSystem
Source§impl TryFrom<u8> for CommandSystem
impl TryFrom<u8> for CommandSystem
impl Copy for CommandSystem
impl Eq for CommandSystem
impl StructuralPartialEq for CommandSystem
Auto Trait Implementations§
impl Freeze for CommandSystem
impl RefUnwindSafe for CommandSystem
impl Send for CommandSystem
impl Sync for CommandSystem
impl Unpin for CommandSystem
impl UnwindSafe for CommandSystem
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