CtxExtension

Trait CtxExtension 

Source
pub trait CtxExtension<'js> {
    // Required method
    fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
       where F: Future<Output = Result<R>> + 'js,
             R: 'js;
}

Required Methods§

Source

fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
where F: Future<Output = Result<R>> + 'js, R: 'js,

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.

Implementations on Foreign Types§

Source§

impl<'js> CtxExtension<'js> for Ctx<'js>

Source§

fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
where F: Future<Output = Result<R>> + 'js, R: 'js,

Implementors§