Skip to main content

FutureExt

Trait FutureExt 

Source
pub trait FutureExt: Future
where Self: Sized,
{ // Provided method fn sync(self) -> Self::Output { ... } }
Expand description

An extension trait for Future allowing synchronized execution of the future.

Provided Methods§

Source

fn sync(self) -> Self::Output

Execute future synchronously, blocking until a result can be returned.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<F> FutureExt for F
where F: Future + Sized,