#[repr(u32)]pub enum CommandClass5 {
EraseBlockStart = 32,
EraseBlockEnd = 33,
EraseGroupStart = 35,
EraseGroupEnd = 36,
Erase = 38,
}
Expand description
MMC opcodes for Class 5.
Variants§
Implementations§
Source§impl CommandClass5
impl CommandClass5
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CommandClass5.
Sourcepub const fn from_raw_unchecked(val: u32) -> Self
pub const fn from_raw_unchecked(val: u32) -> Self
Sourcepub const fn from_raw(val: u32) -> Result<Self, Error>
pub const fn from_raw(val: u32) -> Result<Self, Error>
Attempts to convert a u32
into a CommandClass5.
Sourcepub const fn into_raw(self) -> u32
pub const fn into_raw(self) -> u32
Converts a CommandClass5 into a u32
.
Trait Implementations§
Source§impl Clone for CommandClass5
impl Clone for CommandClass5
Source§fn clone(&self) -> CommandClass5
fn clone(&self) -> CommandClass5
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 CommandClass5
impl Debug for CommandClass5
Source§impl Default for CommandClass5
impl Default for CommandClass5
Source§impl From<CommandClass5> for u32
impl From<CommandClass5> for u32
Source§fn from(val: CommandClass5) -> Self
fn from(val: CommandClass5) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandClass5
impl PartialEq for CommandClass5
Source§impl TryFrom<u32> for CommandClass5
impl TryFrom<u32> for CommandClass5
impl Copy for CommandClass5
impl Eq for CommandClass5
impl StructuralPartialEq for CommandClass5
Auto Trait Implementations§
impl Freeze for CommandClass5
impl RefUnwindSafe for CommandClass5
impl Send for CommandClass5
impl Sync for CommandClass5
impl Unpin for CommandClass5
impl UnwindSafe for CommandClass5
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