Enum passkey_types::ctap2::Ctap2Code
source · pub enum Ctap2Code {
Known(Ctap2Error),
Other(UnknownSpecError),
Extension(ExtensionError),
Vendor(VendorError),
}
Expand description
Ctap2 error which may or may not be explicitly defined
Variants§
Known(Ctap2Error)
Known error codes
Other(UnknownSpecError)
last spec reserved number 0xDF
Extension(ExtensionError)
Range 0xE0..=0xEF
Vendor(VendorError)
Range 0xF0..=0xFF
Trait Implementations§
source§impl From<Ctap2Code> for StatusCode
impl From<Ctap2Code> for StatusCode
source§impl From<Ctap2Error> for Ctap2Code
impl From<Ctap2Error> for Ctap2Code
source§fn from(src: Ctap2Error) -> Self
fn from(src: Ctap2Error) -> Self
Converts to this type from the input type.
source§impl From<ExtensionError> for Ctap2Code
impl From<ExtensionError> for Ctap2Code
source§fn from(src: ExtensionError) -> Self
fn from(src: ExtensionError) -> Self
Converts to this type from the input type.
source§impl From<UnknownSpecError> for Ctap2Code
impl From<UnknownSpecError> for Ctap2Code
source§fn from(src: UnknownSpecError) -> Self
fn from(src: UnknownSpecError) -> Self
Converts to this type from the input type.
source§impl From<VendorError> for Ctap2Code
impl From<VendorError> for Ctap2Code
source§fn from(src: VendorError) -> Self
fn from(src: VendorError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Ctap2Code
impl PartialEq for Ctap2Code
impl Eq for Ctap2Code
impl StructuralEq for Ctap2Code
impl StructuralPartialEq for Ctap2Code
Auto Trait Implementations§
impl RefUnwindSafe for Ctap2Code
impl Send for Ctap2Code
impl Sync for Ctap2Code
impl Unpin for Ctap2Code
impl UnwindSafe for Ctap2Code
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.