pub struct OathController {
pub context: *mut nfc_context,
pub device: *mut nfc_device,
}
Fields§
§context: *mut nfc_context
§device: *mut nfc_device
Implementations§
Source§impl OathController
impl OathController
pub fn new() -> Result<OathController, String>
pub fn close(&self)
pub fn poll(&self, duration: Option<Duration>) -> bool
pub fn send_apdu( &self, class: u8, instruction: u8, parameter1: u8, parameter2: u8, data: Option<&[u8]>, ) -> Result<Vec<u8>, String>
pub fn list(&self) -> Result<Vec<OathCredential>, String>
pub fn calculate(&self, credential: OathCredential) -> OathCredential
Auto Trait Implementations§
impl Freeze for OathController
impl RefUnwindSafe for OathController
impl !Send for OathController
impl !Sync for OathController
impl Unpin for OathController
impl UnwindSafe for OathController
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