pub struct StepBuilder<Ctx, Compact, Input, Current, Encode, Index = usize> { /* private fields */ }
Expand description
A type that allows building the steps order
Implementations§
Source§impl<Ctx, Compact, Input, Encode> StepBuilder<Ctx, Compact, Input, Input, Encode, usize>
impl<Ctx, Compact, Input, Encode> StepBuilder<Ctx, Compact, Input, Input, Encode, usize>
Sourcepub fn new_with_stepper<I: Default>() -> StepBuilder<Ctx, Compact, Input, Input, Encode, I>
pub fn new_with_stepper<I: Default>() -> StepBuilder<Ctx, Compact, Input, Input, Encode, I>
Build a new StepBuilder with a custom stepper
Source§impl<Ctx, Compact, Input, Current, Encode, Index> StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx, Compact, Input, Current, Encode, Index> StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
Sourcepub fn build<S>(self, store: S) -> StepService<Ctx, Compact, Input, S, Index>
pub fn build<S>(self, store: S) -> StepService<Ctx, Compact, Input, S, Index>
Finalize the step building process
Trait Implementations§
Source§impl<Ctx: Debug, Compact: Debug, Input: Debug, Current: Debug, Encode: Debug, Index: Debug> Debug for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx: Debug, Compact: Debug, Input: Debug, Current: Debug, Encode: Debug, Index: Debug> Debug for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
Source§impl<Ctx, Compact, Input, Encode, Index: Default> Default for StepBuilder<Ctx, Compact, Input, Input, Encode, Index>
impl<Ctx, Compact, Input, Encode, Index: Default> Default for StepBuilder<Ctx, Compact, Input, Input, Encode, Index>
Source§impl<S, Ctx, Input, Current, Next, Compact, Encode, Index> Step<S, Ctx, Compact, Input, Current, Next, Encode, Index> for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>where
S: Service<Request<Current, Ctx>, Response = GoTo<Next>, Error = Error> + Send + 'static + Sync,
S::Future: Send + 'static,
Current: DeserializeOwned + Send + 'static,
S::Response: 'static,
Input: Send + 'static + Serialize,
Ctx: Default + Send,
Next: 'static + Send + Serialize,
Compact: Send + 'static,
Encode: Codec<Compact = Compact> + Send + 'static,
Encode::Error: Debug,
Index: StepIndex,
impl<S, Ctx, Input, Current, Next, Compact, Encode, Index> Step<S, Ctx, Compact, Input, Current, Next, Encode, Index> for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>where
S: Service<Request<Current, Ctx>, Response = GoTo<Next>, Error = Error> + Send + 'static + Sync,
S::Future: Send + 'static,
Current: DeserializeOwned + Send + 'static,
S::Response: 'static,
Input: Send + 'static + Serialize,
Ctx: Default + Send,
Next: 'static + Send + Serialize,
Compact: Send + 'static,
Encode: Codec<Compact = Compact> + Send + 'static,
Encode::Error: Debug,
Index: StepIndex,
Source§fn step(
self,
service: S,
) -> StepBuilder<Ctx, Compact, Input, Next, Encode, Index>
fn step( self, service: S, ) -> StepBuilder<Ctx, Compact, Input, Next, Encode, Index>
Helper function for building new steps from
StepBuilder
Auto Trait Implementations§
impl<Ctx, Compact, Input, Current, Encode, Index> Freeze for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>where
Index: Freeze,
impl<Ctx, Compact, Input, Current, Encode, Index = usize> !RefUnwindSafe for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx, Compact, Input, Current, Encode, Index> Send for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx, Compact, Input, Current, Encode, Index> Sync for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx, Compact, Input, Current, Encode, Index> Unpin for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
impl<Ctx, Compact, Input, Current, Encode, Index = usize> !UnwindSafe for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S, Ctx, F, FnArgs, Input, Current, Next, Compact, Encode, Index> StepFn<F, FnArgs, Ctx, Compact, Input, Current, Next, Encode, Index> for S
impl<S, Ctx, F, FnArgs, Input, Current, Next, Compact, Encode, Index> StepFn<F, FnArgs, Ctx, Compact, Input, Current, Next, Encode, Index> for S
Source§fn step_fn(self, f: F) -> StepBuilder<Ctx, Compact, Input, Next, Encode, Index>
fn step_fn(self, f: F) -> StepBuilder<Ctx, Compact, Input, Next, Encode, Index>
Helper function for building new steps from
StepBuilder