pub enum StepAction {
Continue,
Yield,
AwaitEvent,
Backoff(Duration),
Never,
}Expand description
Action returned by an actor step to influence scheduling.
Variants§
Continue
Keep running and allow other branches to progress.
Yield
No immediate need to run step again; defer to other branches.
AwaitEvent
Pause periodic/backoff scheduling until the next event.
Backoff(Duration)
Sleep before the next step to avoid busy looping.
Never
Disable periodic/backoff scheduling. Stepping will be ignored by select!
Trait Implementations§
Source§impl Clone for StepAction
impl Clone for StepAction
Source§fn clone(&self) -> StepAction
fn clone(&self) -> StepAction
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 StepAction
impl Debug for StepAction
Source§impl PartialEq for StepAction
impl PartialEq for StepAction
impl Copy for StepAction
impl Eq for StepAction
impl StructuralPartialEq for StepAction
Auto Trait Implementations§
impl Freeze for StepAction
impl RefUnwindSafe for StepAction
impl Send for StepAction
impl Sync for StepAction
impl Unpin for StepAction
impl UnwindSafe for StepAction
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