#[repr(C)]pub struct Argument(/* private fields */);
Expand description
Argumentument for CMD38.
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn set_secure(&mut self, val: bool)
pub fn set_secure(&mut self, val: bool)
Sourcepub const fn force_garbage_collect(&self) -> bool
pub const fn force_garbage_collect(&self) -> bool
Getter for force_garbage_collect field of Argument.
Force garbage collect request.
Only supported if SEC_GB_CL_END
is set.
Sourcepub fn set_force_garbage_collect(&mut self, val: bool)
pub fn set_force_garbage_collect(&mut self, val: bool)
Setter for force_garbage_collect field of Argument.
Force garbage collect request.
Only supported if SEC_GB_CL_END
is set.
Source§impl Argument
impl Argument
Sourcepub const fn discard(&self) -> bool
pub const fn discard(&self) -> bool
Gets whether the DISCARD
function is configured.
This is true when TRIM
is disabled, and DISCARD
is enabled.
Sourcepub fn set_discard(&mut self, val: bool)
pub fn set_discard(&mut self, val: bool)
Gets whether the DISCARD
function is configured.
This also clears the TRIM
bit if val
is true.
Sourcepub const fn trim(&self) -> bool
pub const fn trim(&self) -> bool
Gets whether the TRIM
function is configured.
This is true when TRIM
is enabled, and DISCARD
is enabled.
Sourcepub fn set_trim(&mut self, val: bool)
pub fn set_trim(&mut self, val: bool)
Sets whether the TRIM
function is configured.
This also sets the DISCARD
bit if val
is true.
Sourcepub const fn erase(&self) -> bool
pub const fn erase(&self) -> bool
Gets whether the ERASE
function is configured.
This is true when all Argument bits are zero.
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
.