Struct tide_server_timing::TimingLayer [−][src]
A subscriber for tracing
that encodes metadata for the Tide middleware to read out.
Implementations
impl<S> TimingLayer<S> where
S: Subscriber + for<'span> LookupSpan<'span>,
[src]
S: Subscriber + for<'span> LookupSpan<'span>,
Trait Implementations
impl<S> Layer<S> for TimingLayer<S> where
S: Subscriber + for<'a> LookupSpan<'a>,
[src]
S: Subscriber + for<'a> LookupSpan<'a>,
fn new_span(&self, _attrs: &Attributes<'_>, id: &Id, cx: Context<'_, S>)
[src]
fn on_exit(&self, id: &Id, cx: Context<'_, S>)
[src]
On exit fold the current span's timing into its parent timing.
unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
[src]
pub fn register_callsite(
&self,
metadata: &'static Metadata<'static>
) -> Interest
[src]
&self,
metadata: &'static Metadata<'static>
) -> Interest
pub fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
pub fn on_record(&self, _span: &Id, _values: &Record<'_>, _ctx: Context<'_, S>)
[src]
pub fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]
pub fn on_event(&self, _event: &Event<'_>, _ctx: Context<'_, S>)
[src]
pub fn on_enter(&self, _id: &Id, _ctx: Context<'_, S>)
[src]
pub fn on_close(&self, _id: Id, _ctx: Context<'_, S>)
[src]
pub fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]
pub fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
L: Layer<S>,
pub fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for TimingLayer<S>
[src]
impl<S> Send for TimingLayer<S>
[src]
impl<S> Sync for TimingLayer<S>
[src]
impl<S> Unpin for TimingLayer<S>
[src]
impl<S> UnwindSafe for TimingLayer<S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,