Trait JoinError

Source
pub trait JoinError {
    // Required methods
    fn is_panic(&self) -> bool;
    fn into_panic(self) -> Box<dyn Any + Send + 'static>;
}
Expand description

Generic utilities for a JoinError

Required Methods§

Source

fn is_panic(&self) -> bool

Check if the spawned task exited because of a panic

Source

fn into_panic(self) -> Box<dyn Any + Send + 'static>

Get the panic object associated with the error. Panics if is_panic is not true.

Implementations on Foreign Types§

Source§

impl JoinError for JoinError

Source§

fn is_panic(&self) -> bool

Source§

fn into_panic(self) -> Box<dyn Any + Send + 'static>

Implementors§