pub enum StepResult {
Pending,
Done,
Timeout,
Failed,
}Expand description
Result of a state machine step.
Each call to step() returns one of these values to indicate
the current state of the operation.
Variants§
Pending
Operation in progress, call step() again next iteration.
Done
Operation completed successfully.
Call output() to get the result.
Timeout
Operation timed out.
Call error() for details.
Failed
Operation failed.
Call error() for details.
Implementations§
Source§impl StepResult
impl StepResult
Sourcepub fn is_pending(self) -> bool
pub fn is_pending(self) -> bool
Check if operation is still in progress.
Sourcepub fn is_terminal(self) -> bool
pub fn is_terminal(self) -> bool
Check if operation terminated (done, timeout, or failed).
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a copy 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 StepResult
impl Debug for StepResult
Source§impl PartialEq for StepResult
impl PartialEq for StepResult
impl Copy for StepResult
impl Eq for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
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