pub enum ImdsError {
Request(String),
Response(String),
}Expand description
Why credentials could not be fetched from the instance metadata service.
Variants§
Request(String)
A request to IMDS itself failed — no route to
169.254.169.254 (not running on EC2, or the link-local route is
firewalled), a timeout, or a non-2xx status.
Response(String)
IMDS answered, but not with something this reads as credentials — most often no IAM role attached to the instance at all.
Trait Implementations§
Source§impl Error for ImdsError
impl Error for ImdsError
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 ImdsError
impl RefUnwindSafe for ImdsError
impl Send for ImdsError
impl Sync for ImdsError
impl Unpin for ImdsError
impl UnsafeUnpin for ImdsError
impl UnwindSafe for ImdsError
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