pub struct WorkerPanic { /* private fields */ }Expand description
An opaque panic payload captured from an automatic reporter worker.
Implementations§
Source§impl WorkerPanic
impl WorkerPanic
Sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
Returns a borrowed message for standard string panic payloads.
Sourcepub fn into_payload(self) -> Box<dyn Any + Send + 'static>
pub fn into_payload(self) -> Box<dyn Any + Send + 'static>
Consumes the error and returns the original panic payload.
Sourcepub fn resume_unwind(self) -> !
pub fn resume_unwind(self) -> !
Resumes unwinding with the original panic payload.
Trait Implementations§
Source§impl Debug for WorkerPanic
impl Debug for WorkerPanic
Source§impl Display for WorkerPanic
impl Display for WorkerPanic
Source§impl Error for WorkerPanic
impl Error for WorkerPanic
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
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 WorkerPanic
impl !Sync for WorkerPanic
impl !UnwindSafe for WorkerPanic
impl Freeze for WorkerPanic
impl Send for WorkerPanic
impl Unpin for WorkerPanic
impl UnsafeUnpin for WorkerPanic
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