[][src]Trait blocker::Blocker

pub trait Blocker {
    type Output;
    pub fn block(self) -> Self::Output;
}

Associated Types

Loading content...

Required methods

pub fn block(self) -> Self::Output[src]

Loading content...

Implementors

impl<T> Blocker for T where
    T: Future
[src]

Blocker is a trait implemented for any type which implements Future. When imported, calling block on any future will halt the program until the future completes.

type Output = T::Output

Loading content...