Trait UseAsync

Source
pub trait UseAsync {
    // Required method
    fn use_async<F>(&mut self, key: Key, task: F)
       where F: Future<Output = ()> + 'static;
}

Required Methods§

Source

fn use_async<F>(&mut self, key: Key, task: F)
where F: Future<Output = ()> + 'static,

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<'a, P> UseAsync for Manager<'a, P>
where P: Platform + ?Sized,