[][src]Struct asparit::ExecutorCallback

pub struct ExecutorCallback<E, C> { /* fields omitted */ }

Implementations

impl<E, C> ExecutorCallback<E, C>[src]

pub fn new(executor: E, consumer: C) -> Self[src]

Trait Implementations

impl<'a, E, T1, C, I, R> IndexedProducerCallback<'a, I> for ExecutorCallback<E, C> where
    E: Executor<'a, T1>,
    T1: Send + 'a,
    C: Consumer<I, Result = T1, Reducer = R> + 'a,
    R: Reducer<T1> + Send + 'a, 
[src]

type Output = E::Result

The type of value returned by this callback. Analogous to Output from the FnOnce trait. Read more

impl<'a, E, T1, C, I, R> ProducerCallback<'a, I> for ExecutorCallback<E, C> where
    E: Executor<'a, T1>,
    T1: Send + 'a,
    C: Consumer<I, Result = T1, Reducer = R> + 'a,
    R: Reducer<T1> + Send + 'a, 
[src]

type Output = E::Result

The type of value returned by this callback. Analogous to Output from the FnOnce trait. Read more

Auto Trait Implementations

impl<E, C> RefUnwindSafe for ExecutorCallback<E, C> where
    C: RefUnwindSafe,
    E: RefUnwindSafe

impl<E, C> Send for ExecutorCallback<E, C> where
    C: Send,
    E: Send

impl<E, C> Sync for ExecutorCallback<E, C> where
    C: Sync,
    E: Sync

impl<E, C> Unpin for ExecutorCallback<E, C> where
    C: Unpin,
    E: Unpin

impl<E, C> UnwindSafe for ExecutorCallback<E, C> where
    C: UnwindSafe,
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.