Enum aws_config::imds::client::ImdsError [−][src]
#[non_exhaustive]
pub enum ImdsError {
FailedToLoadToken(SdkError<TokenError>),
InvalidPath,
ErrorResponse {
response: Response<SdkBody>,
},
IoError(Box<dyn Error + Send + Sync + 'static>),
Unexpected(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
An error retrieving metadata from IMDS
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.
FailedToLoadToken(SdkError<TokenError>)
An IMDSv2 Token could not be loaded
Requests to IMDS must be accompanied by a token obtained via a PUT
request. This is handled
transparently by the Client
.
Tuple Fields of FailedToLoadToken
0: SdkError<TokenError>
The path
was invalid for an IMDS request
The path
parameter must be a valid URI path segment, and it must begin with /
.
An error response was returned from IMDS
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
IO Error
An error occurred comunication with IMDS
An unexpected error occured communicating with IMDS
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ImdsError
impl !UnwindSafe for ImdsError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more