Trait AllowThreadsExt

Source
pub trait AllowThreadsExt: Sized {
    // Provided method
    fn allow_threads(self) -> AllowThreads<Self>  { ... }
}
Expand description

Extension trait to allow threads while polling Future or Stream.

It is implemented for every types.

Provided Methods§

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§