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§