pub enum WebauthnCError {
Show 42 variants Json, Cbor, Unknown, Security, NotSupported, PlatformAuthenticator, Internal, ParseNOMFailure, OpenSSL(String), ApduConstruction, ApduTransmission, InvalidAlgorithm, InvalidAssertion, MessageTooLarge, MessageTooShort, InvalidMessageLength, Cancelled, Ctap(CtapError), PinTooShort, PinTooLong, PinContainsNull, NoSelectedToken, MissingRequiredField, FriendlyNameTooLong, HidError(HidError), PcscError(Error), NoHidDevices, PoisonedMutex, Checksum, StorageCard, IoError(String), InvalidCableUrl, Base10(DecodeError), BluetoothError(String), NoBluetoothAdapter, Closed, WebsocketError(String), NonceOverflow, PermissionDenied, UserVerificationRequired, UnexpectedState, U2F(U2FError),
}

Variants§

§

Json

§

Cbor

§

Unknown

§

Security

§

NotSupported

§

PlatformAuthenticator

§

Internal

§

ParseNOMFailure

§

OpenSSL(String)

§

ApduConstruction

§

ApduTransmission

§

InvalidAlgorithm

§

InvalidAssertion

§

MessageTooLarge

§

MessageTooShort

§

InvalidMessageLength

Message was an unexpected length

§

Cancelled

§

Ctap(CtapError)

§

PinTooShort

The PIN was too short.

§

PinTooLong

The PIN was too long.

§

PinContainsNull

The PIN contained a null byte (\0).

§

NoSelectedToken

§

MissingRequiredField

The authenticator did not provide a required field. This may indicate a bug in this library, or the authenticator.

§

FriendlyNameTooLong

The provided friendly_name was too long.

§

HidError(HidError)

Available on crate feature usb only.
§

PcscError(Error)

Available on crate feature nfc only.
§

NoHidDevices

No HID devices were detected at all. This may indicate a permissions issue.

§

PoisonedMutex

See PoisonError; generally indicates that a method holding a prior lock on the mutex failed.

§

Checksum

The checksum of the value was incorrect.

§

StorageCard

The card reported as a PC/SC storage card, rather than a smart card.

§

IoError(String)

§

InvalidCableUrl

§

Base10(DecodeError)

Available on crate feature cable only.
§

BluetoothError(String)

§

NoBluetoothAdapter

§

Closed

Attempt to communicate with an authenticator for which the connection has been closed.

§

WebsocketError(String)

§

NonceOverflow

The value of the nonce for this object has exceeded the limit.

§

PermissionDenied

§

UserVerificationRequired

User verification was required, but is not available for this authenticator. You may need to set a PIN, or use a different authenticator.

§

UnexpectedState

The library is in an unexpected state. This could indicate that something has not been initialised correctly, or that the authenticator is sending unexpected messages.

§

U2F(U2FError)

Available on crate feature usb only.

Trait Implementations§

source§

impl Debug for WebauthnCError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<CtapError> for WebauthnCError

source§

fn from(e: CtapError) -> Self

Converts to this type from the input type.
source§

impl From<DecodeError> for WebauthnCError

Available on crate feature cable only.
source§

fn from(v: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for WebauthnCError

Available on crate feature cable only.
source§

fn from(v: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for WebauthnCError

Available on crate feature ctap2 only.
source§

fn from(v: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for WebauthnCError

Available on crate feature nfc only.
source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for WebauthnCError

Available on crate features bluetooth or cable only.
source§

fn from(v: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for WebauthnCError

source§

fn from(v: Error) -> Self

Converts to this type from the input type.
source§

impl From<ErrorStack> for WebauthnCError

Available on crate feature crypto only.
source§

fn from(v: ErrorStack) -> Self

Converts to this type from the input type.
source§

impl From<HidError> for WebauthnCError

Available on crate feature usb only.
source§

fn from(e: HidError) -> Self

Converts to this type from the input type.
source§

impl<T> From<PoisonError<T>> for WebauthnCError

source§

fn from(_: PoisonError<T>) -> Self

Converts to this type from the input type.
source§

impl PartialEq for WebauthnCError

source§

fn eq(&self, other: &WebauthnCError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for WebauthnCError

source§

impl StructuralPartialEq for WebauthnCError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T> AsTaggedExplicit<'a> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>

source§

impl<'a, T> AsTaggedImplicit<'a> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more