Trait MaybeSend

Source
pub unsafe trait MaybeSend: Send { }
Expand description

Considering lots of runtimes does not require [std::marker::Send] for [std::future::Future] and [futures_core::stream::Stream], we provide a trait to represent the future or stream that may not require [std::marker::Send]. Users could switch the feature no-send at compile-time to disable the [std::marker::Send] bound for [std::future::Future] and [futures_core::stream::Stream].

§Safety

Do not implement it directly.

Implementors§

Source§

impl<T: Send> MaybeSend for T