Trait fama::FamaPipe

source ·
pub trait FamaPipe<Args, O> {
    // Required method
    fn receive_pipe_content<'life0, 'async_trait>(
        &'life0 self,
        args: Args
    ) -> Pin<Box<dyn Future<Output = O> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn to_pipe(self) -> Box<Self>
       where Self: Sized { ... }
}

Required Methods§

source

fn receive_pipe_content<'life0, 'async_trait>( &'life0 self, args: Args ) -> Pin<Box<dyn Future<Output = O> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Where a pipe logic resides

Provided Methods§

source

fn to_pipe(self) -> Box<Self>where Self: Sized,

Wraps the type in a Box

Implementors§