Skip to main content

Transform

Trait Transform 

Source
pub trait Transform: Send {
    // Required method
    fn run<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;

    // Provided method
    fn spawn(self: Box<Self>) -> JoinHandle<()>
       where Self: 'static { ... }
}

Required Methods§

Source

fn run<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,

Provided Methods§

Source

fn spawn(self: Box<Self>) -> JoinHandle<()>
where Self: 'static,

Implementors§