#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.