ReportableErrorStack

Trait ReportableErrorStack 

Source
pub trait ReportableErrorStack: Display {
    // Required methods
    fn new() -> Self;
    fn attach_printable<P: Display + Send + Sync + 'static>(
        self,
        printable: P,
    ) -> Self;
}
Expand description

A trait for error stack types for use within a Report.

Required Methods§

Source

fn new() -> Self

Construct a new instance of Self.

Source

fn attach_printable<P: Display + Send + Sync + 'static>( self, printable: P, ) -> Self

Attach a Display-able type to the error Report’s stack trace.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§