pub struct CloudWatchEnv { /* private fields */ }Expand description
A builder state for constructing a CloudWatchLogger using environment-based
AWS credentials and a specific log group.
Implementations§
Source§impl CloudWatchEnv
impl CloudWatchEnv
Sourcepub fn get_log_group(&self) -> &str
pub fn get_log_group(&self) -> &str
Returns the name of the target log group.
Sourcepub fn build_impl(self) -> Box<CloudWatchLogger>
pub fn build_impl(self) -> Box<CloudWatchLogger>
Builds the underlying CloudWatchLogger using environment discovery.
Auto Trait Implementations§
impl Freeze for CloudWatchEnv
impl RefUnwindSafe for CloudWatchEnv
impl Send for CloudWatchEnv
impl Sync for CloudWatchEnv
impl Unpin for CloudWatchEnv
impl UnwindSafe for CloudWatchEnv
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.