pub enum WebauthnError {
CredentialIdTooLong,
OriginMissingDomain,
OriginRpMissmatch,
UnprotectedOrigin,
InsecureLocalhostNotAllowed,
CredentialNotFound,
InvalidRpId,
AuthenticatorError(u8),
NotSupportedError,
SyntaxError,
ValidationError,
}
Expand description
Errors produced by Webauthn Operations.
Variants§
CredentialIdTooLong
A credential ID can be a maximum of 1023 bytes.
OriginMissingDomain
The request origin was missing a proper domain part.
OriginRpMissmatch
The request origin is not a sub-domain of the RP ID.
UnprotectedOrigin
The origin of the request does not use HTTPS.
InsecureLocalhostNotAllowed
Origin was set to localhost but allows_insecure_localhost was not set.
CredentialNotFound
No credential was found
InvalidRpId
The RP ID is invalid.
AuthenticatorError(u8)
Internal authenticator error whose value represents a ctap2::StatusCode
NotSupportedError
The operation is not supported.
SyntaxError
The string did not match the expected pattern.
ValidationError
The input failed validation
Implementations§
Source§impl WebauthnError
impl WebauthnError
Sourcepub fn is_vendor_error(&self) -> bool
pub fn is_vendor_error(&self) -> bool
Was the error a vendor error?
Trait Implementations§
Source§impl Debug for WebauthnError
impl Debug for WebauthnError
Source§impl From<StatusCode> for WebauthnError
impl From<StatusCode> for WebauthnError
Source§fn from(value: StatusCode) -> Self
fn from(value: StatusCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebauthnError
impl PartialEq for WebauthnError
Source§impl Serialize for WebauthnError
impl Serialize for WebauthnError
impl Eq for WebauthnError
impl StructuralPartialEq for WebauthnError
Auto Trait Implementations§
impl Freeze for WebauthnError
impl RefUnwindSafe for WebauthnError
impl Send for WebauthnError
impl Sync for WebauthnError
impl Unpin for WebauthnError
impl UnwindSafe for WebauthnError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.