#[non_exhaustive]pub enum SelectionError {
EmptyVerifyAllowlist,
UnknownAlgorithm,
UnknownOperation,
OperationAlgorithmMismatch {
operation: KeyOperation,
algorithm: Algorithm,
},
AlgorithmNotAllowed,
AlgorithmMismatch {
requested: Algorithm,
declared: Algorithm,
},
IntentMismatch,
InvalidKey(InvalidKeyError),
IncompatibleKeyType,
KeySuitabilityFailed(IncompatibleKeyError),
AmbiguousSelection {
count: usize,
},
NoMatchingKey,
}Expand description
Errors returned by strict key selection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyVerifyAllowlist
Verification selection was requested without a configured allowlist.
UnknownAlgorithm
The requested algorithm is unknown/private and strict selection rejects it.
UnknownOperation
The requested operation is unknown/private and strict selection rejects it.
OperationAlgorithmMismatch
The requested operation is not compatible with the requested algorithm.
Fields
operation: KeyOperationOperation requested by the caller.
AlgorithmNotAllowed
The requested verification algorithm is not permitted by the allowlist.
AlgorithmMismatch
The requested algorithm conflicts with a key’s declared alg value.
Fields
IntentMismatch
Key metadata (use / key_ops) does not permit the requested operation.
InvalidKey(InvalidKeyError)
The matched key is structurally invalid.
IncompatibleKeyType
Key material type/curve is incompatible with the requested algorithm.
KeySuitabilityFailed(IncompatibleKeyError)
Key failed cryptographic suitability checks (strength/parameter/capability constraints).
AmbiguousSelection
More than one key satisfies strict selection criteria.
NoMatchingKey
No key satisfies strict selection criteria.
Trait Implementations§
Source§impl Clone for SelectionError
impl Clone for SelectionError
Source§fn clone(&self) -> SelectionError
fn clone(&self) -> SelectionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SelectionError
impl Debug for SelectionError
Source§impl Display for SelectionError
impl Display for SelectionError
Source§impl Error for SelectionError
impl Error for SelectionError
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
Source§impl PartialEq for SelectionError
impl PartialEq for SelectionError
impl Eq for SelectionError
impl StructuralPartialEq for SelectionError
Auto Trait Implementations§
impl Freeze for SelectionError
impl RefUnwindSafe for SelectionError
impl Send for SelectionError
impl Sync for SelectionError
impl Unpin for SelectionError
impl UnsafeUnpin for SelectionError
impl UnwindSafe for SelectionError
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.