[][src]Enum nitrokey::OperationStatus

pub enum OperationStatus {
    Ongoing(u8),
    Idle,
}

The progress of a background operation on the Nitrokey.

Some commands may start a background operation during which no other commands can be executed. This enum stores the status of a background operation: Ongoing with a relative progress (up to 100), or idle, i. e. no background operation has been started or the last one has been finished.

Variants

Ongoing(u8)

A background operation with its progress value (less than or equal to 100).

Idle

No backgrund operation.

Trait Implementations

impl Clone for OperationStatus[src]

impl Copy for OperationStatus[src]

impl Debug for OperationStatus[src]

impl PartialEq<OperationStatus> for OperationStatus[src]

impl StructuralPartialEq for OperationStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.