Skip to main content

ExtExt

Trait ExtExt 

Source
pub trait ExtExt<T>
where Self: Future<Output = T> + Send,
{ // 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

This interface is not necessarily complete; feel free to add as-needed.

Required Methods§

Source

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,

Implementors§

Source§

impl<T, Fut> ExtExt<T> for Fut
where Fut: Future<Output = T> + Send,