Skip to main content

ThreadUnwrap

Trait ThreadUnwrap 

Source
pub trait ThreadUnwrap<T> {
    // Required methods
    fn join_fail<S: Into<String>>(self, explanation: impl FnOnce() -> S) -> T;
    fn join_res(self) -> Res<T>;
}

Required Methods§

Source

fn join_fail<S: Into<String>>(self, explanation: impl FnOnce() -> S) -> T

Source

fn join_res(self) -> Res<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E: Display> ThreadUnwrap<T> for Result<JoinHandle<T>, E>

Source§

fn join_fail<S: Into<String>>(self, e: impl FnOnce() -> S) -> T

Source§

fn join_res(self) -> Res<T>

Implementors§