pub enum FactorStrengthError {
Storage(String),
InsufficientStrength {
factor_type: String,
required: u8,
actual: u8,
},
PhishableFactorRejected {
factor_type: String,
},
WebAuthnRequired {
role: String,
},
PolicyNotFound(TenantId),
InvalidScore(u8),
NoSuitableFactors,
WeakCombination(String),
}Expand description
Errors that can occur during factor strength enforcement
Variants§
Storage(String)
InsufficientStrength
PhishableFactorRejected
WebAuthnRequired
PolicyNotFound(TenantId)
InvalidScore(u8)
NoSuitableFactors
WeakCombination(String)
Trait Implementations§
Source§impl Debug for FactorStrengthError
impl Debug for FactorStrengthError
Source§impl Display for FactorStrengthError
impl Display for FactorStrengthError
Source§impl Error for FactorStrengthError
impl Error for FactorStrengthError
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 FactorStrengthError
impl RefUnwindSafe for FactorStrengthError
impl Send for FactorStrengthError
impl Sync for FactorStrengthError
impl Unpin for FactorStrengthError
impl UnsafeUnpin for FactorStrengthError
impl UnwindSafe for FactorStrengthError
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