pub enum PrepareDelegatedTokenError {
Show 13 variants
CertNotYetValid,
CertExpired,
TokenTtlZero,
TokenTtlExceeded {
ttl_ns: u64,
max_ttl_ns: u64,
},
TokenExpiresAtOverflow,
TokenOutlivesCert,
GrantsEmpty,
TooManyGrants {
found: usize,
max: usize,
},
EmptyGrantScopes {
role: AuthRole,
},
TooManyGrantScopes {
role: AuthRole,
found: usize,
max: usize,
},
AudienceNotSubset,
GrantsNotSubset,
Canonical(CanonicalAuthError),
}Expand description
Ordered request rejection. Neither certificate bytes nor these shape checks establish the provenance of the host’s supplied authority.
Variants§
CertNotYetValid
CertExpired
TokenTtlZero
TokenTtlExceeded
TokenExpiresAtOverflow
TokenOutlivesCert
GrantsEmpty
TooManyGrants
EmptyGrantScopes
TooManyGrantScopes
AudienceNotSubset
GrantsNotSubset
Canonical(CanonicalAuthError)
Trait Implementations§
Source§impl Debug for PrepareDelegatedTokenError
impl Debug for PrepareDelegatedTokenError
Source§impl Display for PrepareDelegatedTokenError
impl Display for PrepareDelegatedTokenError
impl Eq for PrepareDelegatedTokenError
Source§impl Error for PrepareDelegatedTokenError
impl Error for PrepareDelegatedTokenError
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 From<CanonicalAuthError> for PrepareDelegatedTokenError
impl From<CanonicalAuthError> for PrepareDelegatedTokenError
Source§fn from(source: CanonicalAuthError) -> Self
fn from(source: CanonicalAuthError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PrepareDelegatedTokenError
Auto Trait Implementations§
impl Freeze for PrepareDelegatedTokenError
impl RefUnwindSafe for PrepareDelegatedTokenError
impl Send for PrepareDelegatedTokenError
impl Sync for PrepareDelegatedTokenError
impl Unpin for PrepareDelegatedTokenError
impl UnsafeUnpin for PrepareDelegatedTokenError
impl UnwindSafe for PrepareDelegatedTokenError
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