Struct aws_config::profile::timeout_config::ProfileFileTimeoutConfigProvider [−][src]
pub struct ProfileFileTimeoutConfigProvider { /* fields omitted */ }
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
.
Builder
to construct a ProfileFileTimeoutConfigProvider
Attempt to create a new TimeoutConfig
from a profile file.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl Send for ProfileFileTimeoutConfigProvider
impl Sync for ProfileFileTimeoutConfigProvider
impl Unpin for ProfileFileTimeoutConfigProvider
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