pub struct ProfileFileTimeoutConfigProvider { /* private fields */ }
Expand description

Load timeout configuration properties from a profile file

This provider will attempt to load AWS shared configuration, then read timeout configuration properties from the active profile. Timeout values represent the number of seconds before timing out and must be non-negative floats or integers. NaN and infinity are also invalid. If at least one of these values is valid, construction will succeed.

Examples

Sets timeouts for the default profile

[default]
connect_timeout = 1.0
read_timeout = 1.0
tls_negotiation_timeout = 0.5
api_call_attempt_timeout = 2
api_call_timeout = 3

Sets the connect_timeout to 0.5 seconds if and only if the other profile is selected.

[profile other]
connect_timeout = 0.5

This provider is part of the default timeout config provider chain.

Implementations

Create a new ProfileFileTimeoutConfigProvider

To override the selected profile, set the AWS_PROFILE environment variable or use the Builder.

Attempt to create a new TimeoutConfig from a profile file.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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