pub enum StepExecutionMode {
Sync,
Async,
Both,
}Expand description
Declares how a step prefers to execute when both sync and async runtimes are available.
The registry stores both run and run_async pointers for ergonomic
backwards compatibility. This enum records whether a step has a native async
body, a native sync body, or can run efficiently in both contexts.
Variants§
Sync
Step body is synchronous and should prefer the sync handler.
Async
Step body is asynchronous (async fn) and should prefer the async handler.
Both
Step body can execute efficiently in both sync and async contexts.
Trait Implementations§
Source§impl Clone for StepExecutionMode
impl Clone for StepExecutionMode
Source§fn clone(&self) -> StepExecutionMode
fn clone(&self) -> StepExecutionMode
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 Debug for StepExecutionMode
impl Debug for StepExecutionMode
Source§impl PartialEq for StepExecutionMode
impl PartialEq for StepExecutionMode
impl Copy for StepExecutionMode
impl Eq for StepExecutionMode
impl StructuralPartialEq for StepExecutionMode
Auto Trait Implementations§
impl Freeze for StepExecutionMode
impl RefUnwindSafe for StepExecutionMode
impl Send for StepExecutionMode
impl Sync for StepExecutionMode
impl Unpin for StepExecutionMode
impl UnwindSafe for StepExecutionMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.