pub enum DeviceAuthKeyCallbackError {
Show 19 variants
AuthenticatorFailure,
Conversion,
CredentialExcluded,
InvalidRecordIdentifier,
InvalidWebVaultUrl,
MissingDeviceAuthKey,
UnregisterFailure,
InvalidCoseKey,
InvalidPublicKeyCredentialDescriptor,
MasterPasswordHash,
MissingCredentialId,
MissingHmacSecret,
MissingUserHandle,
NotImplemented,
RetrieveRegistrationOptionsFailure,
PrfFailure,
SubmitRegistrationFailure,
UserCancelled,
Unknown {
reason: String,
},
}Expand description
Errors related to processing the device auth key.
Variants§
AuthenticatorFailure
Authenticator failed to produce a valid response.
Conversion
Failed to convert between Rust types.
CredentialExcluded
Credential excluded.
InvalidRecordIdentifier
The record identifier stored in metadata is not a valid UUID.
InvalidWebVaultUrl
Invalid Web Vault URL specified.
MissingDeviceAuthKey
No device auth key exists on this device.
UnregisterFailure
Failed to unregister device auth key from server.
InvalidCoseKey
Failed to de-/serialize COSE key data.
InvalidPublicKeyCredentialDescriptor
An invalid public key credential descriptor was passed in the allow list.
MasterPasswordHash
A master password hash could not be generated for the given master password.
MissingCredentialId
Credential ID was not returned in the response and was not passed in the request.
MissingHmacSecret
No HMAC secret was returned with the credential.
MissingUserHandle
User handle was not returned in the response.
NotImplemented
Feature is not yet implemented.
RetrieveRegistrationOptionsFailure
Failed to retrieve the registration options from the server.
PrfFailure
Failed to generate rotateable key set from PRF output.
SubmitRegistrationFailure
Failed to submit registration request to the server.
UserCancelled
User cancelled the operation.
Unknown
An unknown error occurred.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for DeviceAuthKeyCallbackError
impl<UT> ConvertError<UT> for DeviceAuthKeyCallbackError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for DeviceAuthKeyCallbackError
impl Debug for DeviceAuthKeyCallbackError
Source§impl Display for DeviceAuthKeyCallbackError
impl Display for DeviceAuthKeyCallbackError
Source§impl Error for DeviceAuthKeyCallbackError
impl Error for DeviceAuthKeyCallbackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl<UT> FfiConverter<UT> for DeviceAuthKeyCallbackError
impl<UT> FfiConverter<UT> for DeviceAuthKeyCallbackError
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<DeviceAuthKeyCallbackError> for DeviceAuthKeyError
impl From<DeviceAuthKeyCallbackError> for DeviceAuthKeyError
Source§fn from(val: DeviceAuthKeyCallbackError) -> Self
fn from(val: DeviceAuthKeyCallbackError) -> Self
Source§impl From<DeviceAuthKeyError> for DeviceAuthKeyCallbackError
impl From<DeviceAuthKeyError> for DeviceAuthKeyCallbackError
Source§fn from(val: BitDeviceAuthKeyError) -> Self
fn from(val: BitDeviceAuthKeyError) -> Self
Source§impl From<UnexpectedUniFFICallbackError> for DeviceAuthKeyCallbackError
impl From<UnexpectedUniFFICallbackError> for DeviceAuthKeyCallbackError
Source§impl<UT> Lift<UT> for DeviceAuthKeyCallbackError
impl<UT> Lift<UT> for DeviceAuthKeyCallbackError
Source§impl<UT> LiftRef<UT> for DeviceAuthKeyCallbackError
impl<UT> LiftRef<UT> for DeviceAuthKeyCallbackError
Source§impl<UT> LiftReturn<UT> for DeviceAuthKeyCallbackError
impl<UT> LiftReturn<UT> for DeviceAuthKeyCallbackError
Source§type ReturnType = <DeviceAuthKeyCallbackError as Lift<UT>>::FfiType
type ReturnType = <DeviceAuthKeyCallbackError as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for DeviceAuthKeyCallbackError
impl<UT> Lower<UT> for DeviceAuthKeyCallbackError
Source§impl<UT> LowerError<UT> for DeviceAuthKeyCallbackError
impl<UT> LowerError<UT> for DeviceAuthKeyCallbackError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for DeviceAuthKeyCallbackError
impl<UT> LowerReturn<UT> for DeviceAuthKeyCallbackError
Source§type ReturnType = <DeviceAuthKeyCallbackError as Lower<UT>>::FfiType
type ReturnType = <DeviceAuthKeyCallbackError as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl<UT> TypeId<UT> for DeviceAuthKeyCallbackError
impl<UT> TypeId<UT> for DeviceAuthKeyCallbackError
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for DeviceAuthKeyCallbackError
impl RefUnwindSafe for DeviceAuthKeyCallbackError
impl Send for DeviceAuthKeyCallbackError
impl Sync for DeviceAuthKeyCallbackError
impl Unpin for DeviceAuthKeyCallbackError
impl UnsafeUnpin for DeviceAuthKeyCallbackError
impl UnwindSafe for DeviceAuthKeyCallbackError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.