Skip to main content

MaybeSendFuture

Trait MaybeSendFuture 

Source
pub trait MaybeSendFuture<T>: Future<Output = T> + MaybeSend { }
Expand description

A Future that is additionally MaybeSend, avoiding the need for a cfg split.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, F: Future<Output = T> + MaybeSend> MaybeSendFuture<T> for F