Trait StepFn

Source
pub trait StepFn<F, FnArgs, Ctx, Compact, Input, Current, Next, Codec, Index> {
    // Required method
    fn step_fn(
        self,
        f: F,
    ) -> StepBuilder<Ctx, Compact, Input, Next, Codec, Index>;
}
Expand description

Helper trait for building new steps from StepBuilder

Required Methods§

Source

fn step_fn(self, f: F) -> StepBuilder<Ctx, Compact, Input, Next, Codec, Index>

Helper function for building new steps from StepBuilder

Implementors§

Source§

impl<S, Ctx: Send + Sync, F: Send + Sync, FnArgs: Send + Sync, Input, Current, Next, Compact, Encode, Index> StepFn<F, FnArgs, Ctx, Compact, Input, Current, Next, Encode, Index> for S
where S: Step<ServiceFn<F, Current, Ctx, FnArgs>, Ctx, Compact, Input, Current, Next, Encode, Index>,