pub trait SpawnChildScope {
// Required method
fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self;
}Expand description
Create a function scope that can use spawn! to create children.
Required Methods§
Sourcefn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self
fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self
Create a function scope that can use spawn! to create children.
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.