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

Builder for TimeoutConfig that checks the environment variables and AWS profile files for configuration

Implementations

Configure the default chain

Exposed for overriding the environment when unit-testing providers

Override the profile name used by this provider

Attempt to create a TimeoutConfig from following sources in order:

  1. Environment variables
  2. Profile file

Precedence is considered on a per-field basis. If no timeout is specified, requests will never time out.

Panics

This will panic if:

  • a timeout is set to NaN, a negative number, or infinity
  • a timeout can’t be parsed as a floating point number

Trait Implementations

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