Closer

Trait Closer 

Source
pub trait Closer {
    // Provided method
    fn close<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Closer trait utilized by input and output modules to optionally gracefully exit upon successful processing of the pipeline

Provided Methods§

Source

fn close<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

gracefully terminate resources prior to shutdown of processing pipeline

Implementors§