Struct nfc_oath::OathController [−][src]
pub struct OathController { pub context: *mut nfc_context, pub device: *mut nfc_device, }
Fields
context: *mut nfc_context
device: *mut nfc_device
Methods
impl OathController
[src]
impl OathController
pub fn new() -> Result<OathController, String>
[src]
pub fn new() -> Result<OathController, String>
pub fn close(&self)
[src]
pub fn close(&self)
pub fn poll(&self, duration: Option<Duration>) -> bool
[src]
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>
[src]
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>
[src]
pub fn list(&self) -> Result<Vec<OathCredential>, String>
pub fn calculate(&self, credential: OathCredential) -> OathCredential
[src]
pub fn calculate(&self, credential: OathCredential) -> OathCredential
Auto Trait Implementations
impl !Send for OathController
impl !Send for OathController
impl !Sync for OathController
impl !Sync for OathController