Struct tower_http::trace::DefaultOnRequest
source · pub struct DefaultOnRequest { /* private fields */ }
Available on crate feature
trace
only.Implementations§
source§impl DefaultOnRequest
impl DefaultOnRequest
sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set the [Level
] used for tracing events.
Please note that while this will set the level for the tracing events
themselves, it might cause them to lack expected information, like
request method or path. You can address this using
DefaultMakeSpan::level
.
Defaults to [Level::DEBUG
].
Trait Implementations§
source§impl Clone for DefaultOnRequest
impl Clone for DefaultOnRequest
source§fn clone(&self) -> DefaultOnRequest
fn clone(&self) -> DefaultOnRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultOnRequest
impl Debug for DefaultOnRequest
source§impl Default for DefaultOnRequest
impl Default for DefaultOnRequest
source§impl<B> OnRequest<B> for DefaultOnRequest
impl<B> OnRequest<B> for DefaultOnRequest
Auto Trait Implementations§
impl RefUnwindSafe for DefaultOnRequest
impl Send for DefaultOnRequest
impl Sync for DefaultOnRequest
impl Unpin for DefaultOnRequest
impl UnwindSafe for DefaultOnRequest
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