pub enum WebauthnError {
Show 16 variants
CredentialIdTooLong,
OriginMissingDomain,
OriginRpMissmatch,
UnprotectedOrigin,
InsecureLocalhostNotAllowed,
CredentialNotFound,
InvalidRpId,
AuthenticatorError(u8),
NotSupportedError,
SyntaxError,
ValidationError,
RequiresRelatedOriginsSupport,
FetcherError,
RedirectError,
ExceedsMaxLabelLimit,
SerializationError,
}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
RequiresRelatedOriginsSupport
The given RpId has possibly rolled out related origins
FetcherError
An error when fetching remote resources
RedirectError
A redirect that was not allowed occured
ExceedsMaxLabelLimit
Related Origins endpoint contains a number of labels exceeding the max limit
SerializationError
JSON serialization error
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
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
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more