#[non_exhaustive]pub enum ExternalProviderError {
Unavailable,
Credentials,
Object,
Usage,
Binding,
Operation,
}Expand description
Operational failure classes for an explicitly selected external provider.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The module, token or device is unavailable.
Credentials
Authentication failed or the operation requires authentication.
Object
The selected object does not exist, is ambiguous, or has expired.
Usage
Token key usage does not authorize this primitive.
Binding
The key and selected provider do not share an execution domain.
Operation
A provider-side operation or synchronization failed.
Trait Implementations§
Source§impl Clone for ExternalProviderError
impl Clone for ExternalProviderError
impl Copy for ExternalProviderError
Source§impl Debug for ExternalProviderError
impl Debug for ExternalProviderError
Source§impl Display for ExternalProviderError
impl Display for ExternalProviderError
impl Eq for ExternalProviderError
Source§impl Error for ExternalProviderError
impl Error for ExternalProviderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ExternalProviderError
impl PartialEq for ExternalProviderError
impl StructuralPartialEq for ExternalProviderError
Auto Trait Implementations§
impl Freeze for ExternalProviderError
impl RefUnwindSafe for ExternalProviderError
impl Send for ExternalProviderError
impl Sync for ExternalProviderError
impl Unpin for ExternalProviderError
impl UnsafeUnpin for ExternalProviderError
impl UnwindSafe for ExternalProviderError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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