Enum kube_client::client::oidc_errors::Error
source · pub enum Error {
IdTokenMissing,
IdToken(IdTokenError),
RefreshInit(RefreshInitError),
Refresh(RefreshError),
}
Available on crate features
client
and oidc
only.Expand description
Possible errors when dealing with OIDC.
Variants§
IdTokenMissing
Config did not contain the ID token.
IdToken(IdTokenError)
Failed to retrieve expiration timestamp from the ID token.
RefreshInit(RefreshInitError)
Failed to initialize ID token refreshing.
Refresh(RefreshError)
Failed to refresh the ID token.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<IdTokenError> for Error
impl From<IdTokenError> for Error
source§fn from(source: IdTokenError) -> Self
fn from(source: IdTokenError) -> Self
Converts to this type from the input type.
source§impl From<RefreshError> for Error
impl From<RefreshError> for Error
source§fn from(source: RefreshError) -> Self
fn from(source: RefreshError) -> Self
Converts to this type from the input type.
source§impl From<RefreshInitError> for Error
impl From<RefreshInitError> for Error
source§fn from(source: RefreshInitError) -> Self
fn from(source: RefreshInitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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