pub enum DeviceBindingError {
Storage(String),
DeviceNotFound(String),
TrustExpired(DateTime<Utc>),
ReauthRequired(DateTime<Utc>),
DeviceRevoked(String),
MfaRequired,
SensitiveOperationBlocked(String),
RiskTooHigh {
score: u8,
threshold: u8,
},
DeviceLimitReached {
current: usize,
max: usize,
},
InvalidFingerprint,
NotTrusted,
}Expand description
Errors that can occur during device binding operations
Variants§
Storage(String)
DeviceNotFound(String)
TrustExpired(DateTime<Utc>)
ReauthRequired(DateTime<Utc>)
DeviceRevoked(String)
MfaRequired
SensitiveOperationBlocked(String)
RiskTooHigh
DeviceLimitReached
InvalidFingerprint
NotTrusted
Trait Implementations§
Source§impl Debug for DeviceBindingError
impl Debug for DeviceBindingError
Source§impl Display for DeviceBindingError
impl Display for DeviceBindingError
Source§impl Error for DeviceBindingError
impl Error for DeviceBindingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DeviceBindingError
impl RefUnwindSafe for DeviceBindingError
impl Send for DeviceBindingError
impl Sync for DeviceBindingError
impl Unpin for DeviceBindingError
impl UnsafeUnpin for DeviceBindingError
impl UnwindSafe for DeviceBindingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more