commonware_runtime

Trait Runner

Source
pub trait Runner {
    // Required method
    fn start<F>(self, f: F) -> F::Output
       where F: Future + Send + 'static,
             F::Output: Send + 'static;
}
Expand description

Interface that any task scheduler must implement to start running tasks.

Required Methods§

Source

fn start<F>(self, f: F) -> F::Output
where F: Future + Send + 'static, F::Output: Send + 'static,

Start running a root task.

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§

Source§

impl Runner for commonware_runtime::deterministic::Runner

Source§

impl Runner for commonware_runtime::tokio::Runner