pub struct Report { /* private fields */ }
Expand description

Location dependent problem report content.

This type contains information about a given error, primarily the backtrace, location and timestamp of the error, although reporters may include extra information.

Note that the Backtrace is NOT resolved during creation, to prevent wasting time on the creation of non-reported errors.

Implementations

Resolves and returns a reference to the error backtrace.

Returns a reference to the unresolved backtrace.

Returns the location where the error happened.

We try our best to fetch the correct location of the error by marking everything that may create a Problem with #[track_caller].

Returns the timestamp of when the error was captured.

Inserts an arbitrary data into the report.

Get data inserted in the report via Self::insert.

Returns None if no data with the given type is found.

Trait Implementations

Returns the “default value” for a type. Read more

Define the report format Read more

Store the location of the caller who constructed this error report

Override for the Display format

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.