pub struct AcquireOpts {
pub use_crc: bool,
pub acquire_retries: u32,
}
Expand description
Options for acquiring the card.
Fields§
§use_crc: bool
Set to true to enable CRC checking on reading/writing blocks of data.
Set to false to disable the CRC. Some cards don’t support CRC correctly and this option may be useful in that instance.
On by default because without it you might get silent data corruption on your card.
acquire_retries: u32
Sets the number of times we will retry to acquire the card before giving up and returning
Err(Error::CardNotFound)
. By default, card acquisition will be retried 50 times.
Trait Implementations§
Source§impl Debug for AcquireOpts
impl Debug for AcquireOpts
Auto Trait Implementations§
impl Freeze for AcquireOpts
impl RefUnwindSafe for AcquireOpts
impl Send for AcquireOpts
impl Sync for AcquireOpts
impl Unpin for AcquireOpts
impl UnwindSafe for AcquireOpts
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