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§
type Handle: SpawnHandle
Available on crate feature
smtp-transport only.type Sleep: Future<Output = ()> + Send + 'static
Available on crate feature
smtp-transport only.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.