pub struct Device {
pub name: String,
/* private fields */
}Expand description
An ICCD smartcard.
This object does not necessarily have a UUID, which is a Trussed/SoloKeys thing.
Fields§
§name: StringImplementations§
Trait Implementations§
Source§impl Transport for Device
impl Transport for Device
Source§fn call(&mut self, instruction: u8, data: &[u8]) -> Result<Vec<u8>>
fn call(&mut self, instruction: u8, data: &[u8]) -> Result<Vec<u8>>
The minimal higher-level interface to a transport.
Source§fn call_iso(
&mut self,
class: u8,
instruction: u8,
p1: u8,
p2: u8,
data: &[u8],
) -> Result<Vec<u8>>
fn call_iso( &mut self, class: u8, instruction: u8, p1: u8, p2: u8, data: &[u8], ) -> Result<Vec<u8>>
Call in the funny ISO 7816 fashion with three extra parameters.
Note that only the PCSC transport implements this, not the CTAP transport.
fn select(&mut self, aid: Vec<u8>) -> Result<()>
Source§impl UuidSelectable for Device
impl UuidSelectable for Device
Source§fn list() -> Vec<Self>
fn list() -> Vec<Self>
Infallible method listing all usable smartcards.
To find out more about issues along the way, construct the session, list the smartcards, attach them, etc.
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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