[−][src]Struct tracing_subscriber::fmt::FmtContext
This is supported on
feature="fmt"
only.Provides the current span context to a formatter.
Methods
impl<'a, S, N> FmtContext<'a, S, N> where
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
[src]
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
pub fn visit_spans<E, F>(&self, f: F) -> Result<(), E> where
F: FnMut(&SpanRef<S>) -> Result<(), E>,
[src]
F: FnMut(&SpanRef<S>) -> Result<(), E>,
This is supported on
feature="fmt"
only.Visits every span in the current context with a closure.
The provided closure will be called first with the current span, and then with that span's parent, and then that span's parent, and so on until a root span is reached.
Trait Implementations
impl<'a, S, N> Debug for FmtContext<'a, S, N>
[src]
impl<'a, S, N> FormatFields<'a> for FmtContext<'a, S, N> where
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
[src]
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
fn format_fields<R: RecordFields>(
&self,
writer: &'a mut dyn Write,
fields: R
) -> Result
[src]
&self,
writer: &'a mut dyn Write,
fields: R
) -> Result
Auto Trait Implementations
impl<'a, S, N> RefUnwindSafe for FmtContext<'a, S, N> where
N: RefUnwindSafe,
S: RefUnwindSafe,
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S, N> Send for FmtContext<'a, S, N> where
N: Sync,
S: Sync,
N: Sync,
S: Sync,
impl<'a, S, N> Sync for FmtContext<'a, S, N> where
N: Sync,
S: Sync,
N: Sync,
S: Sync,
impl<'a, S, N> Unpin for FmtContext<'a, S, N>
impl<'a, S, N> UnwindSafe for FmtContext<'a, S, N> where
N: RefUnwindSafe,
S: RefUnwindSafe,
N: RefUnwindSafe,
S: RefUnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'writer, M> FormatFields<'writer> for M where
M: MakeOutput<&'writer mut (dyn Write + 'writer), Result<(), Error>>,
<M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitFmt,
<M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitOutput<Result<(), Error>>,
[src]
M: MakeOutput<&'writer mut (dyn Write + 'writer), Result<(), Error>>,
<M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitFmt,
<M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitOutput<Result<(), Error>>,
fn format_fields<R>(
&Self,
&'writer mut (dyn Write + 'writer),
R
) -> Result<(), Error> where
R: RecordFields,
[src]
&Self,
&'writer mut (dyn Write + 'writer),
R
) -> Result<(), Error> where
R: RecordFields,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,