#[non_exhaustive]pub enum InternalAuthNError {
InvalidToken,
Unavailable,
Other(String),
}Expand description
Neutral platform-plane authentication error.
Intentionally coarse-grained and transport-agnostic: it never carries the token or provider-specific detail, so it is safe to surface at a trust boundary. Concrete validators map their own errors into these variants.
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.
InvalidToken
The credential was present but failed validation (bad signature, wrong audience, expired, not authenticated by the backend, etc.).
The validation backend (e.g. the K8s TokenReview API) could not be
reached or returned a transient failure. Callers may retry or surface 503.
Other(String)
Any other validation failure. The message must not contain the token or other sensitive material.
Trait Implementations§
Source§impl Debug for InternalAuthNError
impl Debug for InternalAuthNError
Source§impl Display for InternalAuthNError
impl Display for InternalAuthNError
Source§impl Error for InternalAuthNError
impl Error for InternalAuthNError
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()
Auto Trait Implementations§
impl Freeze for InternalAuthNError
impl RefUnwindSafe for InternalAuthNError
impl Send for InternalAuthNError
impl Sync for InternalAuthNError
impl Unpin for InternalAuthNError
impl UnsafeUnpin for InternalAuthNError
impl UnwindSafe for InternalAuthNError
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