pub struct PanicInfo {
pub task_id: u64,
pub scope_id: u64,
pub payload: Box<dyn Any + Send>,
}Expand description
Information about a task panic, passed to the user-registered
set_panic_hook.
Fields§
§task_id: u64The executor-assigned task id.
scope_id: u64The scope that owned the task (0 for global tasks).
payload: Box<dyn Any + Send>The boxed panic payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PanicInfo
impl !RefUnwindSafe for PanicInfo
impl Send for PanicInfo
impl !Sync for PanicInfo
impl Unpin for PanicInfo
impl UnsafeUnpin for PanicInfo
impl !UnwindSafe for PanicInfo
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