[][src]Struct reqray::CallTreeCollectorBuilder

pub struct CallTreeCollectorBuilder { /* fields omitted */ }

Configure & Build CallTreeCollectors.

Example:

use reqray::{CallTreeCollectorBuilder, display::LoggingCallTreeCollectorBuilder};

let collector =
    CallTreeCollectorBuilder::default()
        .max_call_depth(42)
        .build_with_collector(
             LoggingCallTreeCollectorBuilder::default()
                 .left_margin(20)
                 .build()
        );

Implementations

impl CallTreeCollectorBuilder[src]

pub fn clock(self, clock: Clock) -> Self[src]

The clock to use for measure execution time.

The default is to use a real clock, but you can pass in a mock clock for testing.

pub fn max_call_depth(self, max_call_depth: usize) -> Self[src]

The maximum call depth of the call tree to record -- must be at least 2.

Call paths below this depth are capped -- so their execution is recorded as if they were inlined.

pub fn build_with_collector<H>(self, processor: H) -> CallTreeCollector<H> where
    H: FinishedCallTreeProcessor + 'static, 
[src]

Build the CallTreeCollector handing over the finished call trees to collector.

Trait Implementations

impl Default for CallTreeCollectorBuilder[src]

Auto Trait Implementations

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.