#[repr(u32)]pub enum CommandClass6 {
SetWriteProtection = 28,
ClearWriteProtection = 29,
SendWriteProtection = 30,
SendWriteProtectionType = 31,
}
Expand description
MMC opcodes for Class 6.
Variants§
SetWriteProtection = 28
ClearWriteProtection = 29
SendWriteProtection = 30
SendWriteProtectionType = 31
Implementations§
Source§impl CommandClass6
impl CommandClass6
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CommandClass6.
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 CommandClass6.
Sourcepub const fn into_raw(self) -> u32
pub const fn into_raw(self) -> u32
Converts a CommandClass6 into a u32
.
Trait Implementations§
Source§impl Clone for CommandClass6
impl Clone for CommandClass6
Source§fn clone(&self) -> CommandClass6
fn clone(&self) -> CommandClass6
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 CommandClass6
impl Debug for CommandClass6
Source§impl Default for CommandClass6
impl Default for CommandClass6
Source§impl From<CommandClass6> for u32
impl From<CommandClass6> for u32
Source§fn from(val: CommandClass6) -> Self
fn from(val: CommandClass6) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandClass6
impl PartialEq for CommandClass6
Source§impl TryFrom<u32> for CommandClass6
impl TryFrom<u32> for CommandClass6
impl Copy for CommandClass6
impl Eq for CommandClass6
impl StructuralPartialEq for CommandClass6
Auto Trait Implementations§
impl Freeze for CommandClass6
impl RefUnwindSafe for CommandClass6
impl Send for CommandClass6
impl Sync for CommandClass6
impl Unpin for CommandClass6
impl UnwindSafe for CommandClass6
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