[−][src]Struct reqray::CallTreeCollectorBuilder
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]
H: FinishedCallTreeProcessor + 'static,
Build the CallTreeCollector handing over the finished call trees
to collector
.
Trait Implementations
impl Default for CallTreeCollectorBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for CallTreeCollectorBuilder
[src]
impl Send for CallTreeCollectorBuilder
[src]
impl Sync for CallTreeCollectorBuilder
[src]
impl Unpin for CallTreeCollectorBuilder
[src]
impl UnwindSafe for CallTreeCollectorBuilder
[src]
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>,