Trait fama::PipelineTrait

source ·
pub trait PipelineTrait {
    type Content: Clone + Send + Sync + 'static;

    // Required method
    fn handle_pipe<'life0, 'async_trait>(
        &'life0 self,
        pipeline: Pipeline<Self::Content>
    ) -> Pin<Box<dyn Future<Output = Pipeline<Self::Content>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn deliver<'life0, 'async_trait>(
        &'life0 self,
        subject: Self::Content
    ) -> Pin<Box<dyn Future<Output = Self::Content> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn try_to_deliver<'life0, 'async_trait>(
        &'life0 self,
        subject: Self::Content
    ) -> Pin<Box<dyn Future<Output = Option<Self::Content>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn deliver_as<'life0, 'async_trait, R>(
        &'life0 self,
        subject: Self::Content
    ) -> Pin<Box<dyn Future<Output = R> + Send + 'async_trait>>
       where Self: Sized + Sync + 'async_trait,
             R: 'async_trait + Clone + 'static,
             'life0: 'async_trait { ... }
    fn try_deliver_as<'life0, 'async_trait, R>(
        &'life0 self,
        subject: Self::Content
    ) -> Pin<Box<dyn Future<Output = Option<R>> + Send + 'async_trait>>
       where Self: Sized + Sync + 'async_trait,
             R: 'async_trait + Clone + 'static,
             'life0: 'async_trait { ... }
    fn confirm<'life0, 'async_trait>(
        &'life0 self,
        subject: Self::Content
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Types§

source

type Content: Clone + Send + Sync + 'static

Required Methods§

source

fn handle_pipe<'life0, 'async_trait>( &'life0 self, pipeline: Pipeline<Self::Content> ) -> Pin<Box<dyn Future<Output = Pipeline<Self::Content>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn deliver<'life0, 'async_trait>( &'life0 self, subject: Self::Content ) -> Pin<Box<dyn Future<Output = Self::Content> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn try_to_deliver<'life0, 'async_trait>( &'life0 self, subject: Self::Content ) -> Pin<Box<dyn Future<Output = Option<Self::Content>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn deliver_as<'life0, 'async_trait, R>( &'life0 self, subject: Self::Content ) -> Pin<Box<dyn Future<Output = R> + Send + 'async_trait>>where Self: Sized + Sync + 'async_trait, R: 'async_trait + Clone + 'static, 'life0: 'async_trait,

source

fn try_deliver_as<'life0, 'async_trait, R>( &'life0 self, subject: Self::Content ) -> Pin<Box<dyn Future<Output = Option<R>> + Send + 'async_trait>>where Self: Sized + Sync + 'async_trait, R: 'async_trait + Clone + 'static, 'life0: 'async_trait,

source

fn confirm<'life0, 'async_trait>( &'life0 self, subject: Self::Content ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§