pub struct ImdsConfig {
pub connect_timeout_seconds: Option<u64>,
pub max_attempts: Option<u32>,
pub read_timeout_seconds: Option<u64>,
}Expand description
EC2 Instance Metadata Service (IMDS) configuration.
Fields§
§connect_timeout_seconds: Option<u64>Timeout in seconds for IMDS connection.
max_attempts: Option<u32>Maximum number of IMDS retry attempts.
read_timeout_seconds: Option<u64>Timeout in seconds for IMDS read operations.
Trait Implementations§
Source§impl Clone for ImdsConfig
impl Clone for ImdsConfig
Source§fn clone(&self) -> ImdsConfig
fn clone(&self) -> ImdsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImdsConfig
impl Debug for ImdsConfig
Source§impl Default for ImdsConfig
impl Default for ImdsConfig
Source§fn default() -> ImdsConfig
fn default() -> ImdsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImdsConfig
impl<'de> Deserialize<'de> for ImdsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasFieldsMetadata for ImdsConfig
impl HasFieldsMetadata for ImdsConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
Source§impl PartialEq for ImdsConfig
impl PartialEq for ImdsConfig
Source§impl Serialize for ImdsConfig
impl Serialize for ImdsConfig
impl StructuralPartialEq for ImdsConfig
Auto Trait Implementations§
impl Freeze for ImdsConfig
impl RefUnwindSafe for ImdsConfig
impl Send for ImdsConfig
impl Sync for ImdsConfig
impl Unpin for ImdsConfig
impl UnsafeUnpin for ImdsConfig
impl UnwindSafe for ImdsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.