[][src]Trait tokio_blocking::FutureBlock

pub trait FutureBlock: Future + Sized {
    fn and_then_block<F, T>(
        self,
        h: ThreadPool,
        f: F
    ) -> AndThenBlock<Self, F, T, Self::Error>
    where
        F: FnOnce(Self::Item) -> Result<T, Self::Error>,
        T: Send + 'static
, { ... }
fn or_else_block<F, E>(
        self,
        h: ThreadPool,
        f: F
    ) -> OrElseBlock<Self, F, Self::Item, E> { ... }
fn then_block<F, T, E>(
        self,
        h: ThreadPool,
        f: F
    ) -> ThenBlock<Self, F, T, E>
    where
        F: FnOnce(Result<Self::Item, Self::Error>) -> Result<T, E>,
        T: Send + 'static
, { ... } }

Provided methods

fn and_then_block<F, T>(
    self,
    h: ThreadPool,
    f: F
) -> AndThenBlock<Self, F, T, Self::Error> where
    F: FnOnce(Self::Item) -> Result<T, Self::Error>,
    T: Send + 'static, 

fn or_else_block<F, E>(
    self,
    h: ThreadPool,
    f: F
) -> OrElseBlock<Self, F, Self::Item, E>

fn then_block<F, T, E>(self, h: ThreadPool, f: F) -> ThenBlock<Self, F, T, E> where
    F: FnOnce(Result<Self::Item, Self::Error>) -> Result<T, E>,
    T: Send + 'static, 

Loading content...

Implementors

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

Loading content...