pub enum StepAction {
Continue,
Yield,
AwaitEvent,
Backoff(Duration),
Never,
}Expand description
Action returned by an actor step to influence scheduling.
Variants§
Continue
Run step again immediately.
Yield
Yield to the runtime, then run step again.
AwaitEvent
Pause step until the next event arrives.
Backoff(Duration)
Sleep for the given duration before running step again.
Never
Disable step permanently. This is the default.
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 Default for StepAction
impl Default for StepAction
Source§fn default() -> StepAction
fn default() -> StepAction
Returns the “default value” for a type. Read more
Source§impl Display for StepAction
impl Display for StepAction
Source§impl Hash for StepAction
impl Hash 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 UnsafeUnpin 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