Trait 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 + Send + Sync + '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 + Send + Sync + '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 { ... }
}