#[non_exhaustive]pub struct FatalContext {
pub cause: String,
pub site: FatalSite,
}Expand description
Why the runtime is about to abort. Passed to the fatal handler.
Marked #[non_exhaustive] so future fields (e.g. a thread name, a
stack-trace fragment) do not break existing match/struct-init expressions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cause: StringBest-effort message extracted from the panic payload.
site: FatalSiteWhich runtime boundary caught it.
Auto Trait Implementations§
impl Freeze for FatalContext
impl RefUnwindSafe for FatalContext
impl Send for FatalContext
impl Sync for FatalContext
impl Unpin for FatalContext
impl UnsafeUnpin for FatalContext
impl UnwindSafe for FatalContext
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