pub struct RlgLayer { /* private fields */ }Expand description
Tower [Layer] that wraps a service with rlg request logging.
Build with RlgLayer::new and the fluent setters. Cheap to
clone — internal state is a couple of small fields.
Implementations§
Source§impl RlgLayer
impl RlgLayer
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new layer with the default configuration:
level INFO, format Logfmt, component "rlg-tower", no
trace-header extraction.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RlgLayer
impl Freeze for RlgLayer
impl RefUnwindSafe for RlgLayer
impl Send for RlgLayer
impl Sync for RlgLayer
impl Unpin for RlgLayer
impl UnsafeUnpin for RlgLayer
impl UnwindSafe for RlgLayer
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