Skip to main content

FamaPipe

Trait 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§