referrerpolicy=no-referrer-when-downgrade
polkadot_node_subsystem

Trait TaskKind

pub trait TaskKind {
    // Required method
    fn launch_task<S>(
        spawner: &mut S,
        task_name: &'static str,
        subsystem_name: &'static str,
        future: Pin<Box<dyn Future<Output = ()> + Send>>,
    )
       where S: Spawner;
}
Expand description

Task kind to launch.

Required Methods§

fn launch_task<S>( spawner: &mut S, task_name: &'static str, subsystem_name: &'static str, future: Pin<Box<dyn Future<Output = ()> + Send>>, )
where S: Spawner,

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§