referrerpolicy=no-referrer-when-downgrade

Trait TaskKind

Source
pub trait TaskKind {
    // Required method
    fn launch_task<S: Spawner>(
        spawner: &mut S,
        task_name: &'static str,
        subsystem_name: &'static str,
        future: BoxFuture<'static, ()>,
    );
}
Expand description

Task kind to launch.

Required Methods§

Source

fn launch_task<S: Spawner>( spawner: &mut S, task_name: &'static str, subsystem_name: &'static str, future: BoxFuture<'static, ()>, )

Spawn a task, it depends on the implementer if this is blocking or not.

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§