#[non_exhaustive]pub enum ProviderErrorReason {
UnsupportedAlgorithm,
ProviderUnavailable,
RandomnessUnavailable,
FallbackProhibited,
PlatformUnavailable,
KeyExists,
KeyNotFound,
AccessDenied,
UserAuthenticationRequired,
UserCanceled,
HardwareUnavailable,
HardwareRejectedKey,
}Expand description
Provider-origin failure reasons.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedAlgorithm
The selected algorithm is not supported by the selected lane/provider.
The requested provider is unavailable in this build or on this device.
The selected provider could not obtain cryptographic randomness.
FallbackProhibited
Policy forbids fallback or cross-lane substitution for this operation.
Required platform authentication or hardware state is unavailable.
KeyExists
A persistent platform key already exists for the requested identifier.
KeyNotFound
The requested persistent platform key does not exist.
AccessDenied
Platform access-control policy denied the operation.
UserAuthenticationRequired
The platform requires user authentication before continuing.
UserCanceled
The user canceled an authentication or consent operation.
The requested hardware-backed security level is unavailable.
HardwareRejectedKey
The hardware provider rejected the key or operation.
Trait Implementations§
Source§impl Clone for ProviderErrorReason
impl Clone for ProviderErrorReason
Source§fn clone(&self) -> ProviderErrorReason
fn clone(&self) -> ProviderErrorReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more