Trait lettre::Executor

source ·
pub trait Executor: Debug + Send + Sync + 'static + Sealed {
    type Handle: SpawnHandle;
    type Sleep: Future<Output = ()> + Send + 'static;
}
Available on crate features tokio1 or async-std1 only.
Expand description

Async executor abstraction trait

Used by AsyncSmtpTransport, AsyncSendmailTransport and AsyncFileTransport in order to be able to work with different async runtimes.

Required Associated Types§

source

type Handle: SpawnHandle

source

type Sleep: Future<Output = ()> + Send + 'static

Object Safety§

This trait is not object safe.

Implementors§