pub trait ExtExt<T>{
// Required method
fn until<A, B, F>(self, f: F) -> Select<A, B> ⓘ
where Self: Sized,
F: FnOnce() -> B,
A: Future<Output = T> + From<Self> + Send + Unpin,
B: Future<Output = ()> + Send + Unpin;
}Expand description
Adds a stop-future race to ordinary futures.
The returned selector resolves when either future completes. Its output identifies the winner and retains the unfinished future.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".