pub struct FatalReport {
pub kind: FatalKind,
pub component: Option<String>,
pub reason: String,
pub origin: Option<Origin>,
pub thread_name: String,
pub backtrace: Option<String>,
pub context: Vec<(String, String)>,
}Fields§
§kind: FatalKind§component: Option<String>§reason: String§origin: Option<Origin>§thread_name: String§backtrace: Option<String>§context: Vec<(String, String)>Implementations§
Source§impl FatalReport
impl FatalReport
pub fn new(kind: FatalKind, reason: impl Into<String>) -> Self
pub fn component(self, component: impl Into<String>) -> Self
pub fn origin(self, origin: Origin) -> Self
pub fn backtrace(self, backtrace: impl Into<String>) -> Self
pub fn with(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn error_id(&self) -> String
pub fn render(&self) -> String
Trait Implementations§
Source§impl Clone for FatalReport
impl Clone for FatalReport
Source§fn clone(&self) -> FatalReport
fn clone(&self) -> FatalReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FatalReport
impl RefUnwindSafe for FatalReport
impl Send for FatalReport
impl Sync for FatalReport
impl Unpin for FatalReport
impl UnsafeUnpin for FatalReport
impl UnwindSafe for FatalReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more