pub trait Scope<'s, 'env, 'scope>: Copy {
// Required method
fn run<W>(self, work: W)
where W: FnOnce() + Send + 'scope + 'env,
'scope: 's,
'env: 'scope + 's;
}Expand description
A scope within which work can be spawned onto a ThreadPool, bounded by the
lifetimes of the borrowed environment.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".