#[repr(u8)]pub enum SendTaskStatus {
CardStatus = 0,
TaskStatus = 1,
}
Expand description
Represents the Send Task Status Register
field of the CMD13
Argument.
This field is a don't care
if CQ
is disabled.
Variants§
CardStatus = 0
If CQ
is enabled or disabled, send the card status.
TaskStatus = 1
If CQ
is:
- enabled: send the task status
- disabled: send the card status
Implementations§
Source§impl SendTaskStatus
impl SendTaskStatus
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SendTaskStatus.
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 SendTaskStatus.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a SendTaskStatus into a u8
.
Source§impl SendTaskStatus
impl SendTaskStatus
Sourcepub const fn from_bool(val: bool) -> Self
pub const fn from_bool(val: bool) -> Self
Converts a bool
into a SendTaskStatus.
Sourcepub const fn into_bool(self) -> bool
pub const fn into_bool(self) -> bool
Converts a bool
into a SendTaskStatus.
Trait Implementations§
Source§impl Clone for SendTaskStatus
impl Clone for SendTaskStatus
Source§fn clone(&self) -> SendTaskStatus
fn clone(&self) -> SendTaskStatus
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 SendTaskStatus
impl Debug for SendTaskStatus
Source§impl Default for SendTaskStatus
impl Default for SendTaskStatus
Source§impl From<SendTaskStatus> for bool
impl From<SendTaskStatus> for bool
Source§fn from(val: SendTaskStatus) -> Self
fn from(val: SendTaskStatus) -> Self
Converts to this type from the input type.
Source§impl From<SendTaskStatus> for u8
impl From<SendTaskStatus> for u8
Source§fn from(val: SendTaskStatus) -> Self
fn from(val: SendTaskStatus) -> Self
Converts to this type from the input type.
Source§impl From<bool> for SendTaskStatus
impl From<bool> for SendTaskStatus
Source§impl PartialEq for SendTaskStatus
impl PartialEq for SendTaskStatus
Source§impl TryFrom<u8> for SendTaskStatus
impl TryFrom<u8> for SendTaskStatus
impl Copy for SendTaskStatus
impl Eq for SendTaskStatus
impl StructuralPartialEq for SendTaskStatus
Auto Trait Implementations§
impl Freeze for SendTaskStatus
impl RefUnwindSafe for SendTaskStatus
impl Send for SendTaskStatus
impl Sync for SendTaskStatus
impl Unpin for SendTaskStatus
impl UnwindSafe for SendTaskStatus
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