[−][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.
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,
fn new_span(&self, attrs: &Attributes, id: &Id, ctx: Context<S>)
[src]
fn on_enter(&self, id: &Id, ctx: Context<S>)
[src]
fn on_event(&self, event: &Event, ctx: Context<S>)
[src]
fn on_exit(&self, _id: &Id, _ctx: Context<S>)
[src]
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn enabled(&self, metadata: &Metadata, ctx: Context<S>) -> bool
[src]
fn on_record(&self, _span: &Id, _values: &Record, _ctx: Context<S>)
[src]
fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<S>)
[src]
fn on_close(&self, _id: Id, _ctx: Context<S>)
[src]
fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<S>)
[src]
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
L: Layer<S>,
fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for HierarchicalLayer<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for HierarchicalLayer<W> where
W: Send,
W: Send,
impl<W> Sync for HierarchicalLayer<W> where
W: Sync,
W: Sync,
impl<W> Unpin for HierarchicalLayer<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for HierarchicalLayer<W> where
W: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,