pub struct EnvConfigProvider;
Expand description
Implementation of the ConfigProvider
trait that reads the settings from
environment variables in the Lambda execution environment. This is the config
used by the start()
method of this module.
Trait Implementations§
Source§impl ConfigProvider for EnvConfigProvider
impl ConfigProvider for EnvConfigProvider
Source§fn get_function_settings(&self) -> Result<FunctionSettings, RuntimeError>
fn get_function_settings(&self) -> Result<FunctionSettings, RuntimeError>
Loads the function settings from the Lambda environment variables: https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
Source§fn get_runtime_api_endpoint(&self) -> Result<String, RuntimeError>
fn get_runtime_api_endpoint(&self) -> Result<String, RuntimeError>
Loads the endpoint from Lambda’s default environment variable: AWS_LAMBDA_RUNTIME_API
Auto Trait Implementations§
impl Freeze for EnvConfigProvider
impl RefUnwindSafe for EnvConfigProvider
impl Send for EnvConfigProvider
impl Sync for EnvConfigProvider
impl Unpin for EnvConfigProvider
impl UnwindSafe for EnvConfigProvider
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> 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 more