Struct tower_http::trace::DefaultOnEos
source · pub struct DefaultOnEos { /* private fields */ }
Implementations§
source§impl DefaultOnEos
impl DefaultOnEos
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DefaultOnEos
.
sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set the Level
used for tracing events.
Defaults to Level::DEBUG
.
sourcepub fn latency_unit(self, latency_unit: LatencyUnit) -> Self
pub fn latency_unit(self, latency_unit: LatencyUnit) -> Self
Set the LatencyUnit
latencies will be reported in.
Defaults to LatencyUnit::Millis
.
Trait Implementations§
source§impl Clone for DefaultOnEos
impl Clone for DefaultOnEos
source§fn clone(&self) -> DefaultOnEos
fn clone(&self) -> DefaultOnEos
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 DefaultOnEos
impl Debug for DefaultOnEos
source§impl Default for DefaultOnEos
impl Default for DefaultOnEos
Auto Trait Implementations§
impl Freeze for DefaultOnEos
impl RefUnwindSafe for DefaultOnEos
impl Send for DefaultOnEos
impl Sync for DefaultOnEos
impl Unpin for DefaultOnEos
impl UnwindSafe for DefaultOnEos
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)