Trait mail_core::context::OffloaderComponent
source · pub trait OffloaderComponent: Debug + Send + Sync + 'static {
fn offload<F>(&self, fut: F) -> SendBoxFuture<F::Item, F::Error>
where
F: Future + Send + 'static,
F::Item: Send + 'static,
F::Error: Send + 'static;
}
Expand description
Trait needed to be implemented for providing the offloading parts to a CompositeContext
.
Required Methods
Implementations on Foreign Types
sourceimpl OffloaderComponent for CpuPool
impl OffloaderComponent for CpuPool
Implementors
impl<C> OffloaderComponent for Cwhere
C: Context,
Allows using a part of an context as an component.