Struct StepBuilder

Source
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>

Source

pub fn new() -> Self

Create a new StepBuilder

Source

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>

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Ctx, Compact, Input, Encode, Index: Default> Default for StepBuilder<Ctx, Compact, Input, Input, Encode, Index>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
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,

Source§

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>
where Index: Send, Current: Send, Encode: Send, Input: Send,

§

impl<Ctx, Compact, Input, Current, Encode, Index> Sync for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
where Index: Sync, Current: Sync, Encode: Sync, Input: Sync,

§

impl<Ctx, Compact, Input, Current, Encode, Index> Unpin for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>
where Index: Unpin, Current: Unpin, Encode: Unpin, Input: Unpin,

§

impl<Ctx, Compact, Input, Current, Encode, Index = usize> !UnwindSafe for StepBuilder<Ctx, Compact, Input, Current, Encode, Index>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

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

Helper function for building new steps from StepBuilder
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V