Struct tower_http::trace::DefaultOnFailure [−][src]
pub struct DefaultOnFailure { /* fields omitted */ }This is supported on crate feature
trace only.Implementations
impl DefaultOnFailure[src]
impl DefaultOnFailure[src]pub fn level(self, level: Level) -> Self[src]
pub fn level(self, level: Level) -> Self[src]Set the Level used for tracing events.
Defaults to Level::DEBUG.
pub fn latency_unit(self, latency_unit: LatencyUnit) -> Self[src]
pub fn latency_unit(self, latency_unit: LatencyUnit) -> Self[src]Set the LatencyUnit latencies will be reported in.
Defaults to LatencyUnit::Millis.
Trait Implementations
impl Clone for DefaultOnFailure[src]
impl Clone for DefaultOnFailure[src]fn clone(&self) -> DefaultOnFailure[src]
fn clone(&self) -> DefaultOnFailure[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for DefaultOnFailure[src]
impl Debug for DefaultOnFailure[src]impl Default for DefaultOnFailure[src]
impl Default for DefaultOnFailure[src]impl<FailureClass> OnFailure<FailureClass> for DefaultOnFailure where
FailureClass: Display, [src]
impl<FailureClass> OnFailure<FailureClass> for DefaultOnFailure where
FailureClass: Display, [src]fn on_failure(
&mut self,
failure_classification: FailureClass,
latency: Duration,
_: &Span
)[src]
fn on_failure(
&mut self,
failure_classification: FailureClass,
latency: Duration,
_: &Span
)[src]Do the thing. Read more
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> PolicyExt for T where
T: ?Sized, [src]
impl<T> PolicyExt for T where
T: ?Sized, [src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more