#[repr(u8)]pub enum MmcCommandSet {
StandardMmc = 0,
Mmca1 = 1,
Mmca2 = 2,
Mmca3 = 3,
Mmca4 = 4,
}
Expand description
Represents the selection variants for the EXT_CSD
command set.
Variants§
StandardMmc = 0
Selects the Standard MMC command set.
Mmca1 = 1
Selects the MMCA allocated command set 1.
Mmca2 = 2
Selects the MMCA allocated command set 2.
Mmca3 = 3
Selects the MMCA allocated command set 3.
Mmca4 = 4
Selects the MMCA allocated command set 4.
Implementations§
Source§impl MmcCommandSet
impl MmcCommandSet
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MmcCommandSet.
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 MmcCommandSet.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a MmcCommandSet into a u8
.
Source§impl MmcCommandSet
impl MmcCommandSet
Sourcepub const fn try_from_inner(val: u8) -> Result<Self>
pub const fn try_from_inner(val: u8) -> Result<Self>
Attempts to convert an inner representation into a MmcCommandSet.
Sourcepub const fn into_inner(self) -> u8
pub const fn into_inner(self) -> u8
Converts a MmcCommandSet into an inner representation.
Trait Implementations§
Source§impl Clone for MmcCommandSet
impl Clone for MmcCommandSet
Source§fn clone(&self) -> MmcCommandSet
fn clone(&self) -> MmcCommandSet
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 MmcCommandSet
impl Debug for MmcCommandSet
Source§impl Default for MmcCommandSet
impl Default for MmcCommandSet
Source§impl From<MmcCommandSet> for u8
impl From<MmcCommandSet> for u8
Source§fn from(val: MmcCommandSet) -> Self
fn from(val: MmcCommandSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MmcCommandSet
impl PartialEq for MmcCommandSet
Source§impl TryFrom<u8> for MmcCommandSet
impl TryFrom<u8> for MmcCommandSet
impl Copy for MmcCommandSet
impl Eq for MmcCommandSet
impl StructuralPartialEq for MmcCommandSet
Auto Trait Implementations§
impl Freeze for MmcCommandSet
impl RefUnwindSafe for MmcCommandSet
impl Send for MmcCommandSet
impl Sync for MmcCommandSet
impl Unpin for MmcCommandSet
impl UnwindSafe for MmcCommandSet
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