Struct nitrokey_sys::NK_device_info
source · [−]#[repr(C)]pub struct NK_device_info {
pub model: NK_device_model,
pub path: *mut c_char,
pub serial_number: *mut c_char,
pub next: *mut NK_device_info,
}
Expand description
The connection info for a Nitrokey device as a linked list.
Fields
model: NK_device_model
The model of the Nitrokey device.
path: *mut c_char
The USB device path for NK_connect_with_path.
serial_number: *mut c_char
The serial number.
next: *mut NK_device_info
The pointer to the next element of the linked list or null if this is the last element in the list.
Trait Implementations
sourceimpl Clone for NK_device_info
impl Clone for NK_device_info
sourcefn clone(&self) -> NK_device_info
fn clone(&self) -> NK_device_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NK_device_info
impl Debug for NK_device_info
sourceimpl Default for NK_device_info
impl Default for NK_device_info
impl Copy for NK_device_info
Auto Trait Implementations
impl RefUnwindSafe for NK_device_info
impl !Send for NK_device_info
impl !Sync for NK_device_info
impl Unpin for NK_device_info
impl UnwindSafe for NK_device_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more