[−][src]Struct tracing_tree::HierarchicalLayer
Implementations
impl HierarchicalLayer<fn() -> Stdout>
[src]
impl<W> HierarchicalLayer<W> where
W: MakeWriter + 'static,
[src]
W: MakeWriter + 'static,
pub fn with_ansi(self, ansi: bool) -> Self
[src]
Enables terminal colors, boldness and italics.
pub fn with_writer<W2>(self, make_writer: W2) -> HierarchicalLayer<W2> where
W2: MakeWriter + 'static,
[src]
W2: MakeWriter + 'static,
pub fn with_indent_amount(self, indent_amount: usize) -> Self
[src]
pub fn with_indent_lines(self, indent_lines: bool) -> Self
[src]
Renders an ascii art tree instead of just using whitespace indentation.
pub fn with_targets(self, targets: bool) -> Self
[src]
Whether to render the event and span targets. Usually targets are the module path to the event/span macro invocation.
pub fn with_thread_ids(self, thread_ids: bool) -> Self
[src]
Whether to render the thread id in the beginning of every line. This is helpful to untangle the tracing statements emitted by each thread.
pub fn with_thread_names(self, thread_names: bool) -> Self
[src]
Whether to render the thread name in the beginning of every line. Not all threads have names, but if they do, this may be more helpful than the generic thread ids.
pub fn with_wraparound(self, wraparound: usize) -> Self
[src]
Resets the indentation to zero after wraparound
indentation levels.
This is helpful if you expect very deeply nested spans as otherwise the indentation
just runs out of your screen.
pub fn with_verbose_entry(self, verbose_entry: bool) -> Self
[src]
Whether to print the currently active span's message again before entering a new span. This helps if the entry to the current span was quite a while back (and with scrolling upwards in logs).
pub fn with_verbose_exit(self, verbose_exit: bool) -> Self
[src]
Whether to print the currently active span's message again before dropping it. This helps if the entry to the current span was quite a while back (and with scrolling upwards in logs).
pub fn with_bracketed_fields(self, bracketed_fields: bool) -> Self
[src]
Whether to print {}
around the fields when printing a span.
This can help visually distinguish fields from the rest of the message.
Trait Implementations
impl<W: Debug> Debug for HierarchicalLayer<W> where
W: MakeWriter + 'static,
[src]
W: MakeWriter + 'static,
impl Default for HierarchicalLayer
[src]
impl<S, W> Layer<S> for HierarchicalLayer<W> where
S: Subscriber + for<'span> LookupSpan<'span> + Debug,
W: MakeWriter + 'static,
[src]
S: Subscriber + for<'span> LookupSpan<'span> + Debug,
W: MakeWriter + 'static,
pub fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
pub fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)
[src]
pub fn on_close(&self, id: Id, ctx: Context<'_, S>)
[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_enter(&self, _id: &Id, _ctx: Context<'_, S>)
[src]
pub fn on_exit(&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<W> RefUnwindSafe for HierarchicalLayer<W> where
W: RefUnwindSafe,
[src]
W: RefUnwindSafe,
impl<W> Send for HierarchicalLayer<W> where
W: Send,
[src]
W: Send,
impl<W> Sync for HierarchicalLayer<W> where
W: Sync,
[src]
W: Sync,
impl<W> Unpin for HierarchicalLayer<W> where
W: Unpin,
[src]
W: Unpin,
impl<W> UnwindSafe for HierarchicalLayer<W> where
W: UnwindSafe,
[src]
W: UnwindSafe,
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, 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.
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>,