#[repr(C)]pub struct NfcDeviceBase {Show 13 fields
pub protocol_name: *const c_char,
pub alloc: NfcDeviceAlloc,
pub free: NfcDeviceFree,
pub reset: NfcDeviceReset,
pub copy: NfcDeviceCopy,
pub verify: NfcDeviceVerify,
pub load: NfcDeviceLoad,
pub save: NfcDeviceSave,
pub is_equal: NfcDeviceEqual,
pub get_name: NfcDeviceGetName,
pub get_uid: NfcDeviceGetUid,
pub set_uid: NfcDeviceSetUid,
pub get_base_data: NfcDeviceGetBaseData,
}
Expand description
Generic NFC device interface.
Each protocol must fill this structure with its own function implementations.
Fields§
§protocol_name: *const c_char
< Pointer to a statically-allocated string with the protocol name.
alloc: NfcDeviceAlloc
< Pointer to the alloc() function.
free: NfcDeviceFree
< Pointer to the free() function.
reset: NfcDeviceReset
< Pointer to the reset() function.
copy: NfcDeviceCopy
< Pointer to the copy() function.
verify: NfcDeviceVerify
< Deprecated. Set to NULL in new protocols.
load: NfcDeviceLoad
< Pointer to the load() function.
save: NfcDeviceSave
< Pointer to the save() function.
is_equal: NfcDeviceEqual
< Pointer to the is_equal() function.
get_name: NfcDeviceGetName
< Pointer to the get_name() function.
get_uid: NfcDeviceGetUid
< Pointer to the get_uid() function.
set_uid: NfcDeviceSetUid
< Pointer to the set_uid() function.
get_base_data: NfcDeviceGetBaseData
< Pointer to the get_base_data() function.
Trait Implementations§
Source§impl Clone for NfcDeviceBase
impl Clone for NfcDeviceBase
Source§fn clone(&self) -> NfcDeviceBase
fn clone(&self) -> NfcDeviceBase
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 NfcDeviceBase
impl Debug for NfcDeviceBase
impl Copy for NfcDeviceBase
Auto Trait Implementations§
impl Freeze for NfcDeviceBase
impl RefUnwindSafe for NfcDeviceBase
impl !Send for NfcDeviceBase
impl !Sync for NfcDeviceBase
impl Unpin for NfcDeviceBase
impl UnwindSafe for NfcDeviceBase
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