Struct yubihsm::UsbTimeout [−][src]
pub struct UsbTimeout(_);
Timeouts when performing USB operations
Methods
impl UsbTimeout
[src]
impl UsbTimeout
pub fn new(duration: Duration) -> Self
[src]
pub fn new(duration: Duration) -> Self
Create a new timeout from the given duration
pub fn from_secs(secs: u64) -> Self
[src]
pub fn from_secs(secs: u64) -> Self
Create a new timeout from the given number of secs
pub fn from_millis(millis: u64) -> Self
[src]
pub fn from_millis(millis: u64) -> Self
Create a new timeout from the given number of milliseconds
pub fn duration(&self) -> Duration
[src]
pub fn duration(&self) -> Duration
Get the duration value
Trait Implementations
impl Copy for UsbTimeout
[src]
impl Copy for UsbTimeout
impl Clone for UsbTimeout
[src]
impl Clone for UsbTimeout
fn clone(&self) -> UsbTimeout
[src]
fn clone(&self) -> UsbTimeout
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for UsbTimeout
[src]
impl Debug for UsbTimeout
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for UsbTimeout
[src]
impl Default for UsbTimeout
Default timeout
impl From<Duration> for UsbTimeout
[src]
impl From<Duration> for UsbTimeout
Auto Trait Implementations
impl Send for UsbTimeout
impl Send for UsbTimeout
impl Sync for UsbTimeout
impl Sync for UsbTimeout