pub struct ScanRequest {
pub kind: ScanKind,
pub keep_session_alive: bool,
}Expand description
Arguments of the Nfc::scan API.
Fields§
§kind: ScanKindThe kind of scan to perform, which defines how tags are matched.
keep_session_alive: boolWhether the connection to the scanned tag must be kept open after the scan resolves.
When true, a following Nfc::write call writes to the tag that was
scanned instead of starting a new session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanRequest
impl RefUnwindSafe for ScanRequest
impl Send for ScanRequest
impl Sync for ScanRequest
impl Unpin for ScanRequest
impl UnsafeUnpin for ScanRequest
impl UnwindSafe for ScanRequest
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