#[repr(u32)]pub enum CommandClass2 {
SetBlocklen = 16,
ReadSingleBlock = 17,
ReadMultipleBlock = 18,
SendTuningBlock = 19,
SpeedClassControl = 20,
SendTuningBlockHS200 = 21,
AddressExtension = 22,
SetBlockCount = 23,
}
Expand description
MMC opcodes for Class 2.
Variants§
SetBlocklen = 16
ReadSingleBlock = 17
ReadMultipleBlock = 18
SendTuningBlock = 19
SpeedClassControl = 20
SendTuningBlockHS200 = 21
AddressExtension = 22
SetBlockCount = 23
Implementations§
Source§impl CommandClass2
impl CommandClass2
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CommandClass2.
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 CommandClass2.
Sourcepub const fn into_raw(self) -> u32
pub const fn into_raw(self) -> u32
Converts a CommandClass2 into a u32
.
Trait Implementations§
Source§impl Clone for CommandClass2
impl Clone for CommandClass2
Source§fn clone(&self) -> CommandClass2
fn clone(&self) -> CommandClass2
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 CommandClass2
impl Debug for CommandClass2
Source§impl Default for CommandClass2
impl Default for CommandClass2
Source§impl From<CommandClass2> for u32
impl From<CommandClass2> for u32
Source§fn from(val: CommandClass2) -> Self
fn from(val: CommandClass2) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandClass2
impl PartialEq for CommandClass2
Source§impl TryFrom<u32> for CommandClass2
impl TryFrom<u32> for CommandClass2
impl Copy for CommandClass2
impl Eq for CommandClass2
impl StructuralPartialEq for CommandClass2
Auto Trait Implementations§
impl Freeze for CommandClass2
impl RefUnwindSafe for CommandClass2
impl Send for CommandClass2
impl Sync for CommandClass2
impl Unpin for CommandClass2
impl UnwindSafe for CommandClass2
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