teo_runtime::pipeline::item::callback

Trait CallbackArgument

Source
pub trait CallbackArgument<A, O: Into<CallbackResult>>:
    Send
    + Sync
    + 'static {
    // Required method
    fn call(&self, args: Arguments, ctx: Ctx) -> BoxFuture<'static, O>;
}

Required Methods§

Source

fn call(&self, args: Arguments, ctx: Ctx) -> BoxFuture<'static, O>

Implementors§

Source§

impl<A0, A1, A2, A3, O, F, Fut> CallbackArgument<(A0, A1, A2, A3), O> for F
where A0: ExtractFromPipelineCtx + Send + Sync, A1: ExtractFromPipelineCtx + Send + Sync, A2: ExtractFromPipelineCtx + Send + Sync, A3: ExtractFromPipelineCtx + Send + Sync, F: Fn(A0, A1, A2, A3) -> Fut + Sync + Send + 'static, O: Into<CallbackResult> + Send + Sync, Fut: Future<Output = O> + Send + 'static,

Source§

impl<A0, A1, A2, O, F, Fut> CallbackArgument<(A0, A1, A2), O> for F
where A0: ExtractFromPipelineCtx + Send + Sync, A1: ExtractFromPipelineCtx + Send + Sync, A2: ExtractFromPipelineCtx + Send + Sync, F: Fn(A0, A1, A2) -> Fut + Sync + Send + 'static, O: Into<CallbackResult> + Send + Sync, Fut: Future<Output = O> + Send + 'static,

Source§

impl<A0, A1, O, F, Fut> CallbackArgument<(A0, A1), O> for F
where A0: ExtractFromPipelineCtx + Send + Sync, A1: ExtractFromPipelineCtx + Send + Sync, F: Fn(A0, A1) -> Fut + Sync + Send + 'static, O: Into<CallbackResult> + Send + Sync, Fut: Future<Output = O> + Send + 'static,

Source§

impl<A0, O, F, Fut> CallbackArgument<(A0,), O> for F
where A0: ExtractFromPipelineCtx + Send + Sync, F: Fn(A0) -> Fut + Sync + Send + Clone + 'static, O: Into<CallbackResult> + Send + Sync, Fut: Future<Output = O> + Send + 'static,