[−][src]Struct nitrokey::DeviceInfo
Connection information for a Nitrokey device.
Fields
model: Option<Model>
The model of the Nitrokey device, or None
if the model is not supported by this crate.
path: String
The USB device path.
serial_number: Option<String>
The serial number as a 8-character hex string, or None
if the device does not expose its
serial number.
Trait Implementations
impl Clone for DeviceInfo
[src]
fn clone(&self) -> DeviceInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeviceInfo
[src]
impl Display for DeviceInfo
[src]
impl PartialEq<DeviceInfo> for DeviceInfo
[src]
fn eq(&self, other: &DeviceInfo) -> bool
[src]
fn ne(&self, other: &DeviceInfo) -> bool
[src]
impl StructuralPartialEq for DeviceInfo
[src]
impl<'_> TryFrom<&'_ NK_device_info> for DeviceInfo
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(device_info: &NK_device_info) -> Result<DeviceInfo, Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,