pub enum SecurityError {
Unsupported(&'static str),
InvalidToken,
VerificationFailed,
InvalidSecretRef,
SecretUnavailable,
}Expand description
Security-local errors.
Variants§
Unsupported(&'static str)
Requested security operation is unsupported.
InvalidToken
Token structure or claims are invalid.
VerificationFailed
Signature or payload verification failed.
InvalidSecretRef
Secret reference is unsafe or malformed.
Referenced secret material is unavailable.
Trait Implementations§
Source§impl Clone for SecurityError
impl Clone for SecurityError
Source§fn clone(&self) -> SecurityError
fn clone(&self) -> SecurityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityError
impl Debug for SecurityError
impl Eq for SecurityError
Source§impl PartialEq for SecurityError
impl PartialEq for SecurityError
impl StructuralPartialEq for SecurityError
Auto Trait Implementations§
impl Freeze for SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl UnwindSafe for SecurityError
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