You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
933 B
Rust

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
/// Possible errors for the [`Ctap2Device::reset`] command.
#[derive(Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Error {
/// Returned if the `reset` operation is disabled for the transport used or
/// if user precense is explicitly denied.
OperationDenied,
/// Returned when a user action timeout occurs.
///
/// > This refers to a timeout that occurs when the authenticator is waiting
/// > for direct action from the user, like a touch. (I.e. not a command
/// > from the platform.) The duration of this timeout is chosen by the
/// > authenticator but MUST be at least 10 seconds. Thirty seconds is a
/// > reasonable value.
UserActionTimeout,
/// Returned when the `reset` request is received by the authenticator more
/// than ten seconds after powering up.
NotAllowed,
}