[−][src]Struct maybe_unwind::Unwind
The captured information about an unwinding panic.
Methods
impl Unwind
[src]
pub fn payload(&self) -> &(dyn Any + Send + 'static)
[src]
Return the payload associated with the captured panic.
pub fn payload_str(&self) -> &str
[src]
Return the string representation of the panic payload.
pub fn into_payload(self) -> Box<dyn Any + Send + 'static>
[src]
Convert itself into a trait object of the panic payload.
pub fn location(&self) -> Option<&Location>
[src]
Return the information about the location from which the panic originated.
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
Get the stack backtrace captured by the panic hook.
Currently this method is enabled only if the backtrace is supported.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Unwind
impl Send for Unwind
impl !Sync for Unwind
impl Unpin for Unwind
impl !UnwindSafe for Unwind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,