[−][src]Trait termcandy::FutureExt
Extension trait for futures.
Provided methods
fn draw_as<D>(self, drawer: D) -> DrawAs<Self, D> where
Self: Sized,
D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>),
Self: Sized,
D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>),
Convert any future to a widget by giving it a draw method.
Implementors
impl<F> FutureExt for F where
F: Future,
[src]
F: Future,
fn draw_as<D>(self, drawer: D) -> DrawAs<Self, D> where
Self: Sized,
D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>),
[src]
Self: Sized,
D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>),