Trait FutureBlock

Source
pub trait FutureBlock: Future + Sized {
    // 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 { ... }
}

Provided Methods§

Source

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,

Source

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

Source

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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> FutureBlock for T
where T: Future,