lettre

Trait Executor

Source
pub trait Executor:
    Debug
    + Send
    + Sync
    + 'static
    + Sealed {
    type Handle: SpawnHandle;
    type Sleep: Future<Output = ()> + Send + 'static;
}
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§