Skip to main content

ActionCallback

Trait ActionCallback 

Source
pub trait ActionCallback<Marker, Err> {
    type Input;
    type Output;

    // Required method
    fn call(
        &mut self,
        input: Self::Input,
    ) -> impl Future<Output = Result<Self::Output, Err>> + 'static;
}

Required Associated Types§

Required Methods§

Source

fn call( &mut self, input: Self::Input, ) -> impl Future<Output = Result<Self::Output, Err>> + '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<Func, Out, A, B, C, D, E, F, Fut, Err> ActionCallback<(A, B, C, D, E, F, Out), Err> for Func
where Func: FnMut(A, B, C, D, E, F) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, A, B, C, D, E, Fut, Err> ActionCallback<(A, B, C, D, E, Out), Err> for Func
where Func: FnMut(A, B, C, D, E) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, A, B, C, D, Fut, Err> ActionCallback<(A, B, C, D, Out), Err> for Func
where Func: FnMut(A, B, C, D) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, A, B, C, Fut, Err> ActionCallback<(A, B, C, Out), Err> for Func
where Func: FnMut(A, B, C) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, A, B, Fut, Err> ActionCallback<(A, B, Out), Err> for Func
where Func: FnMut(A, B) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, A, Fut, Err> ActionCallback<(A, Out), Err> for Func
where Func: FnMut(A) -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,

Source§

impl<Func, Out, Fut, Err> ActionCallback<(Out,), Err> for Func
where Func: FnMut() -> Fut, Fut: Future<Output = Result<Out, Err>> + 'static,