pub trait SpawnerTraceExt {
// Required method
fn spawn_named<S>(
&self,
name: &'static str,
token: SpawnToken<S>,
) -> Result<(), SpawnError>;
}
Expand description
Extension trait adding tracing capabilities to the Spawner
This trait provides an additional method to spawn tasks with an associated name, which can be useful for debugging and tracing purposes.
Required Methods§
Sourcefn spawn_named<S>(
&self,
name: &'static str,
token: SpawnToken<S>,
) -> Result<(), SpawnError>
fn spawn_named<S>( &self, name: &'static str, token: SpawnToken<S>, ) -> Result<(), SpawnError>
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§
impl SpawnerTraceExt for Spawner
Implementation of the SpawnerTraceExt trait for Spawner when trace is disabled