Struct http_problem::reporter::Report
source · [−]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
sourceimpl Report
impl Report
sourcepub fn backtrace(&self) -> impl Deref<Target = Backtrace> + '_
pub fn backtrace(&self) -> impl Deref<Target = Backtrace> + '_
Resolves and returns a reference to the error backtrace.
sourcepub fn backtrace_unresolved(&self) -> impl Deref<Target = Backtrace> + '_
pub fn backtrace_unresolved(&self) -> impl Deref<Target = Backtrace> + '_
Returns a reference to the unresolved backtrace.
sourcepub fn location(&self) -> &'static Location<'static>
pub fn location(&self) -> &'static Location<'static>
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]
.
sourcepub fn timestamp(&self) -> DateTime<Local>
pub fn timestamp(&self) -> DateTime<Local>
Returns the timestamp of when the error was captured.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl !UnwindSafe for Report
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more