Trait email::thread_pool::ThreadPoolContextBuilder

source ·
pub trait ThreadPoolContextBuilder: Clone + Send + Sync {
    type Context: ThreadPoolContext;

    // Required method
    fn build<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = AnyResult<Self::Context>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

The thread pool context builder.

Required Associated Types§

source

type Context: ThreadPoolContext

The context built by this trait.

Required Methods§

source

fn build<'async_trait>( self ) -> Pin<Box<dyn Future<Output = AnyResult<Self::Context>> + Send + 'async_trait>>
where Self: 'async_trait,

Build the thread pool context.

Object Safety§

This trait is not object safe.

Implementors§