[][src]Struct maybe_unwind::Unwind

pub struct Unwind { /* fields omitted */ }

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

impl Debug for Unwind[src]

impl Display for Unwind[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.