[][src]Struct holochain_tracing::tracer_console::ConsoleReporter

pub struct ConsoleReporter { /* fields omitted */ }

A Reporter that stores all spans it receives in a map, with the intent to display all received spans to the console.

Methods

impl ConsoleReporter[src]

pub fn new(span_rx: Receiver<RtFinishedSpan<SpanContextState>>) -> Self[src]

Constructor

pub fn clear(&mut self)[src]

Delete all stored spans

pub fn drain(&mut self) -> u32[src]

Drain span_rx and add to map TODO: Could be done periodically in a separate thread

pub fn print(&self, only_events: bool)[src]

Print span_map to console

Trait Implementations

impl Debug for ConsoleReporter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> 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 = !

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.

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

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

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