Struct tower_http::trace::DefaultOnEos
source · pub struct DefaultOnEos { /* private fields */ }
Available on crate feature
trace
only.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 more