Skip to main content

Start

Trait Start 

Source
pub trait Start<T> {
    // Required method
    fn start(self) -> Task<T>;
}
Expand description

A trait for types that can start tasks.

Required Methods§

Source

fn start(self) -> Task<T>

Starts a task from this value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, F> Start<T> for F
where T: Send + 'static, F: Future<Output = T> + Send + 'static,

Source§

impl<T> Start<T> for Task<T>