Skip to main content

CaptureTrace

Trait CaptureTrace 

Source
pub trait CaptureTrace {
    type Trace;

    // Required method
    fn capture(&self) -> Self::Trace;
}
Expand description

A trait to support custom implementations of traces

Required Associated Types§

Source

type Trace

Representation for captured trace

Required Methods§

Source

fn capture(&self) -> Self::Trace

Capture trace at the current moment.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§