pub struct AndThenStep<F, S> { /* private fields */ }Expand description
The step implementation for the AndThen layer.
Trait Implementations§
Source§impl<F: Clone, S: Clone> Clone for AndThenStep<F, S>
impl<F: Clone, S: Clone> Clone for AndThenStep<F, S>
Source§fn clone(&self) -> AndThenStep<F, S>
fn clone(&self) -> AndThenStep<F, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F, Input, S, B, CodecError, SinkError> Step<Input, B> for AndThenStep<F, S>where
B: BackendExt<Error = SinkError> + Send + Sync + 'static + Clone + Sink<Task<B::Compact, B::Context, B::IdType>, Error = SinkError> + Unpin,
F: Service<Task<Input, B::Context, B::IdType>, Error = BoxDynError> + Send + 'static + Clone,
S: Step<F::Response, B>,
Input: Send + 'static,
F::Future: Send + 'static,
F::Error: Into<BoxDynError> + Send + 'static,
B::Codec: Codec<F::Response, Error = CodecError, Compact = B::Compact> + Codec<Input, Error = CodecError, Compact = B::Compact> + Codec<S::Response, Error = CodecError, Compact = B::Compact> + 'static,
CodecError: Error + Send + Sync + 'static,
B::IdType: GenerateId + Send + 'static,
S::Response: Send + 'static,
B::Compact: Send + 'static,
B::Context: Send + MetadataExt<WorkflowContext> + 'static,
SinkError: Error + Send + Sync + 'static,
F::Response: Send + 'static,
impl<F, Input, S, B, CodecError, SinkError> Step<Input, B> for AndThenStep<F, S>where
B: BackendExt<Error = SinkError> + Send + Sync + 'static + Clone + Sink<Task<B::Compact, B::Context, B::IdType>, Error = SinkError> + Unpin,
F: Service<Task<Input, B::Context, B::IdType>, Error = BoxDynError> + Send + 'static + Clone,
S: Step<F::Response, B>,
Input: Send + 'static,
F::Future: Send + 'static,
F::Error: Into<BoxDynError> + Send + 'static,
B::Codec: Codec<F::Response, Error = CodecError, Compact = B::Compact> + Codec<Input, Error = CodecError, Compact = B::Compact> + Codec<S::Response, Error = CodecError, Compact = B::Compact> + 'static,
CodecError: Error + Send + Sync + 'static,
B::IdType: GenerateId + Send + 'static,
S::Response: Send + 'static,
B::Compact: Send + 'static,
B::Context: Send + MetadataExt<WorkflowContext> + 'static,
SinkError: Error + Send + Sync + 'static,
F::Response: Send + 'static,
Source§type Response = <F as Service<Task<Input, <B as Backend>::Context, <B as Backend>::IdType>>>::Response
type Response = <F as Service<Task<Input, <B as Backend>::Context, <B as Backend>::IdType>>>::Response
The response type produced by the step.
Source§type Error = <F as Service<Task<Input, <B as Backend>::Context, <B as Backend>::IdType>>>::Error
type Error = <F as Service<Task<Input, <B as Backend>::Context, <B as Backend>::IdType>>>::Error
The error type produced by the step.
Source§fn register(&mut self, ctx: &mut WorkflowRouter<B>) -> Result<(), BoxDynError>
fn register(&mut self, ctx: &mut WorkflowRouter<B>) -> Result<(), BoxDynError>
Register the step with the workflow router.
Auto Trait Implementations§
impl<F, S> Freeze for AndThenStep<F, S>
impl<F, S> RefUnwindSafe for AndThenStep<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for AndThenStep<F, S>
impl<F, S> Sync for AndThenStep<F, S>
impl<F, S> Unpin for AndThenStep<F, S>
impl<F, S> UnwindSafe for AndThenStep<F, S>where
F: UnwindSafe,
S: UnwindSafe,
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