pub struct StepMovement { /* private fields */ }Expand description
Targets a Step with encoded input and an optional per-movement options override.
Create movements with Self::to or Self::to_with_options, then pass them to
StepDecision::go_to_many, crate::RpcResult::then, or conditional completion.
Implementations§
Source§impl StepMovement
impl StepMovement
Sourcepub fn to<TargetStep>(step: &TargetStep, input: TargetStep::Input) -> Selfwhere
TargetStep: Step,
pub fn to<TargetStep>(step: &TargetStep, input: TargetStep::Input) -> Selfwhere
TargetStep: Step,
Targets step with typed input and the Step’s registered options.
Sourcepub fn to_with_options<TargetStep>(
step: &TargetStep,
input: TargetStep::Input,
options: StepOptions<TargetStep::Input>,
) -> Selfwhere
TargetStep: Step,
pub fn to_with_options<TargetStep>(
step: &TargetStep,
input: TargetStep::Input,
options: StepOptions<TargetStep::Input>,
) -> Selfwhere
TargetStep: Step,
Targets step with typed input and options used only for this movement.
Auto Trait Implementations§
impl !RefUnwindSafe for StepMovement
impl !UnwindSafe for StepMovement
impl Freeze for StepMovement
impl Send for StepMovement
impl Sync for StepMovement
impl Unpin for StepMovement
impl UnsafeUnpin for StepMovement
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