Enum passkey_client::WebauthnError
source · pub enum WebauthnError {
CredentialIdTooLong,
OriginMissingDomain,
OriginRpMissmatch,
UnprotectedOrigin,
InsecureLocalhostNotAllowed,
CredentialNotFound,
InvalidRpId,
AuthenticatorError(u8),
}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
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§fn eq(&self, other: &WebauthnError) -> bool
fn eq(&self, other: &WebauthnError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for WebauthnError
impl Serialize for WebauthnError
impl Eq for WebauthnError
impl StructuralEq for WebauthnError
impl StructuralPartialEq for WebauthnError
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.