#[repr(C)]pub struct Argument(/* private fields */);
Expand description
Argument for CMD39.
Implementations§
Source§impl Argument
impl Argument
Sourcepub const fn register_write_flag(&self) -> bool
pub const fn register_write_flag(&self) -> bool
Getter for register_write_flag field of Argument.
Indicates whether to write to (true
) or read from (false
) the register.
Sourcepub fn set_register_write_flag(&mut self, val: bool)
pub fn set_register_write_flag(&mut self, val: bool)
Setter for register_write_flag field of Argument.
Indicates whether to write to (true
) or read from (false
) the register.
Source§impl Argument
impl Argument
Sourcepub const fn register_address(&self) -> u8
pub const fn register_address(&self) -> u8
Gets the card register address field of the Argument.
Sourcepub fn set_register_address(&mut self, val: u8)
pub fn set_register_address(&mut self, val: u8)
Sets the card register address field of the Argument.
Sourcepub const fn register_data(&self) -> u8
pub const fn register_data(&self) -> u8
Gets the card register data field of the Argument.
Sourcepub fn set_register_data(&mut self, val: u8)
pub fn set_register_data(&mut self, val: u8)
Sets the card register data field of the Argument.
Sourcepub const fn try_from_bits(val: u32) -> Result<Self>
pub const fn try_from_bits(val: u32) -> Result<Self>
Sourcepub const fn try_from_bytes(val: &[u8]) -> Result<Self>
pub const fn try_from_bytes(val: &[u8]) -> Result<Self>
Attempts to convert a byte slice into an Argument
.
Trait Implementations§
impl Copy for Argument
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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