Struct aws_config::environment::region::EnvironmentVariableRegionProvider [−][src]
pub struct EnvironmentVariableRegionProvider { /* fields omitted */ }
Expand description
Load a region from environment variables
This provider will first check the value of AWS_REGION
, falling back to AWS_DEFAULT_REGION
when AWS_REGION
is unset.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn region(&self) -> ProvideRegion<'_>ⓘNotable traits for ProvideRegion<'_>impl Future for ProvideRegion<'_> type Output = Option<Region>;
fn region(&self) -> ProvideRegion<'_>ⓘNotable traits for ProvideRegion<'_>impl Future for ProvideRegion<'_> type Output = Option<Region>;
Notable traits for ProvideRegion<'_>
impl Future for ProvideRegion<'_> type Output = Option<Region>;
Load a region from this provider
Auto Trait Implementations
impl Send for EnvironmentVariableRegionProvider
impl Sync for EnvironmentVariableRegionProvider
impl Unpin for EnvironmentVariableRegionProvider
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