pub struct PanicInfo { /* private fields */ }
Expand description
Represents a panic caugh across processes.
This contains the marshalled panic information so that it can be used for other purposes.
This is similar to std::panic::PanicInfo
but can cross process boundaries.
Implementations§
Source§impl PanicInfo
impl PanicInfo
Sourcepub fn from_std(info: &PanicInfo<'_>, capture_backtrace: bool) -> PanicInfo
pub fn from_std(info: &PanicInfo<'_>, capture_backtrace: bool) -> PanicInfo
Creates a panic info from a standard library one.
It will attempt to extract all information available from it
and if capture_backtrace
is set to true
it will also
capture a backtrace at the current location and assign it
to the panic info object.
For the backtrace parameter to have an effect the
backtrace
feature needs to be enabled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PanicInfo
impl<'de> Deserialize<'de> for PanicInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PanicInfo
impl RefUnwindSafe for PanicInfo
impl Send for PanicInfo
impl Sync for PanicInfo
impl Unpin 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