pub struct Unwind { /* private fields */ }
Expand description
The captured information about an unwinding panic.
Implementations§
Source§impl Unwind
impl Unwind
Sourcepub fn payload(&self) -> &(dyn Any + Send + 'static)
pub fn payload(&self) -> &(dyn Any + Send + 'static)
Return the payload associated with the captured panic.
Sourcepub fn payload_str(&self) -> &str
pub fn payload_str(&self) -> &str
Return the string representation of the panic payload.
Sourcepub fn into_payload(self) -> Box<dyn Any + Send>
pub fn into_payload(self) -> Box<dyn Any + Send>
Convert itself into a trait object of the panic payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unwind
impl !RefUnwindSafe for Unwind
impl Send for Unwind
impl !Sync for Unwind
impl Unpin for Unwind
impl !UnwindSafe for Unwind
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