Struct yubihsm::UsbTimeout[][src]

pub struct UsbTimeout(_);

Timeouts when performing USB operations

Methods

impl UsbTimeout
[src]

Create a new timeout from the given duration

Create a new timeout from the given number of secs

Create a new timeout from the given number of milliseconds

Get the duration value

Trait Implementations

impl Copy for UsbTimeout
[src]

impl Clone for UsbTimeout
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for UsbTimeout
[src]

Formats the value using the given formatter. Read more

impl Default for UsbTimeout
[src]

Default timeout

Returns the "default value" for a type. Read more

impl From<Duration> for UsbTimeout
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for UsbTimeout

impl Sync for UsbTimeout