Trait background_jobs::UnsendSpawner
source · pub trait UnsendSpawner {
type Handle<T: Send>: Future<Output = Result<T, JoinError>> + Send + Unpin;
// Required method
fn spawn<Fut>(future: Fut) -> Self::Handle<<Fut as Future>::Output>
where Fut: Future + 'static,
<Fut as Future>::Output: Send + 'static;
}
Expand description
The mechanism used to spawn Unsend futures, making them Send
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.