pub struct Report {
pub pkg_name: &'static str,
pub pkg_version: &'static str,
pub file: &'static str,
pub line: u32,
pub err: Box<dyn Error>,
}Expand description
You can use .source() to get the first real source in Report
Fields§
§pkg_name: &'static str§pkg_version: &'static str§file: &'static str§line: u32§err: Box<dyn Error>Trait Implementations§
source§impl Error for Report
impl Error for Report
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
This method will ignore the report stack and get the first real source
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more