pub struct CloudWatchWorkerGuard { /* private fields */ }Expand description
Guard returned when creating a CloudWatch layer
When this guard is dropped a shutdown signal will be sent to the CloudWatch logging worker to flush logs and stop processing any more logs.
This is used to ensure buffered logs are flushed on panic
or graceful shutdown. Use CloudWatchWorkerGuard::shutdown
to explicitly wait for completion.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloudWatchWorkerGuard
impl !RefUnwindSafe for CloudWatchWorkerGuard
impl Send for CloudWatchWorkerGuard
impl Sync for CloudWatchWorkerGuard
impl Unpin for CloudWatchWorkerGuard
impl UnsafeUnpin for CloudWatchWorkerGuard
impl !UnwindSafe for CloudWatchWorkerGuard
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