pub struct StepList<'a, StartInput> { /* private fields */ }Expand description
Collects a Flow’s starting Step and remaining Step definitions.
The lifetime ties registered definitions to Step values owned by the Flow. A list may contain at
most one starting Step; Self::and adds non-starting Steps with arbitrary input types.
Implementations§
Source§impl<'a, StartInput: Value> StepList<'a, StartInput>
impl<'a, StartInput: Value> StepList<'a, StartInput>
Sourcepub fn start<StartStep>(step: &'a StartStep) -> Selfwhere
StartStep: Step<Input = StartInput>,
pub fn start<StartStep>(step: &'a StartStep) -> Selfwhere
StartStep: Step<Input = StartInput>,
Creates a list whose starting Step accepts the Flow’s start input.
Sourcepub fn and<OtherStep>(self, step: &'a OtherStep) -> Selfwhere
OtherStep: Step,
pub fn and<OtherStep>(self, step: &'a OtherStep) -> Selfwhere
OtherStep: Step,
Adds a non-starting Step and returns the updated list.
Trait Implementations§
Auto Trait Implementations§
impl<'a, StartInput> !RefUnwindSafe for StepList<'a, StartInput>
impl<'a, StartInput> !UnwindSafe for StepList<'a, StartInput>
impl<'a, StartInput> Freeze for StepList<'a, StartInput>
impl<'a, StartInput> Send for StepList<'a, StartInput>
impl<'a, StartInput> Sync for StepList<'a, StartInput>
impl<'a, StartInput> Unpin for StepList<'a, StartInput>
impl<'a, StartInput> UnsafeUnpin for StepList<'a, StartInput>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request