Struct tower_http::trace::DefaultOnFailure
source · pub struct DefaultOnFailure { /* private fields */ }
Available on crate feature
trace
only.Implementations§
source§impl DefaultOnFailure
impl DefaultOnFailure
sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set the [Level
] used for tracing events.
Defaults to [Level::ERROR
].
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 DefaultOnFailure
impl Clone for DefaultOnFailure
source§fn clone(&self) -> DefaultOnFailure
fn clone(&self) -> DefaultOnFailure
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 DefaultOnFailure
impl Debug for DefaultOnFailure
source§impl Default for DefaultOnFailure
impl Default for DefaultOnFailure
Auto Trait Implementations§
impl RefUnwindSafe for DefaultOnFailure
impl Send for DefaultOnFailure
impl Sync for DefaultOnFailure
impl Unpin for DefaultOnFailure
impl UnwindSafe for DefaultOnFailure
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