Trait ResultThreadSpawner

Source
pub trait ResultThreadSpawner<O>: ThreadSpawner<O>
where Self::ThreadHandle: TryJoinableHandle<Output = O>, O: Send + 'static,
{ }
Expand description

Named version of ThreadSpawner where the handle is a TryJoinableHandle. Auto implemented.

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.

Implementors§

Source§

impl<T, O> ResultThreadSpawner<O> for T
where T: ThreadSpawner<O>, T::ThreadHandle: TryJoinableHandle<Output = O>, O: Send + 'static,