Enum aws_config::imds::client::TokenError
source · [−]pub enum TokenError {
InvalidToken,
NoTtl,
InvalidTtl,
InvalidParameters,
Forbidden,
}
Expand description
Error retrieving token from IMDS
Variants
InvalidToken
The token was invalid
Because tokens must be eventually sent as a header, the token must be a valid header value.
NoTtl
No TTL was sent
The token response must include a time-to-live indicating the lifespan of the token.
InvalidTtl
The TTL was invalid
The TTL must be a valid positive integer.
InvalidParameters
Invalid Parameters
The request to load a token was malformed. This indicates an SDK bug.
Forbidden
Forbidden
IMDS is disabled or has been disallowed via permissions.
Trait Implementations
sourceimpl Debug for TokenError
impl Debug for TokenError
sourceimpl Display for TokenError
impl Display for TokenError
sourceimpl Error for TokenError
impl Error for TokenError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnwindSafe for TokenError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more