Struct tracing_tree::HierarchicalLayer[][src]

pub struct HierarchicalLayer<W = fn() -> Stdout> where
    W: MakeWriter + 'static, 
{ /* fields omitted */ }

Implementations

impl HierarchicalLayer<fn() -> Stdout>[src]

pub fn new(indent_amount: usize) -> Self[src]

impl<W> HierarchicalLayer<W> where
    W: MakeWriter + 'static, 
[src]

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]

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]

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]

Auto Trait Implementations

impl<W> RefUnwindSafe for HierarchicalLayer<W> where
    W: RefUnwindSafe

impl<W> Send for HierarchicalLayer<W> where
    W: Send

impl<W> Sync for HierarchicalLayer<W> where
    W: Sync

impl<W> Unpin for HierarchicalLayer<W> where
    W: Unpin

impl<W> UnwindSafe for HierarchicalLayer<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.