pub enum StepOutcome {
Completed,
Pending,
Cancelled,
}Expand description
The outcome of an async step.
Cancelled is produced when the underlying future was dropped before
completing (recorded by crate::TracedFuture / crate::LabeledFuture
emitting a crate::PollResult::Cancelled event).
§Examples
use async_reify::StepOutcome;
let completed = StepOutcome::Completed;
let pending = StepOutcome::Pending;
assert_ne!(completed, pending);Variants§
Completed
The step completed successfully.
Pending
The step is still pending.
Cancelled
The step was cancelled (the future was dropped before completion).
Trait Implementations§
Source§impl Clone for StepOutcome
impl Clone for StepOutcome
Source§fn clone(&self) -> StepOutcome
fn clone(&self) -> StepOutcome
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 StepOutcome
impl Debug for StepOutcome
Source§impl PartialEq for StepOutcome
impl PartialEq for StepOutcome
impl Eq for StepOutcome
impl StructuralPartialEq for StepOutcome
Auto Trait Implementations§
impl Freeze for StepOutcome
impl RefUnwindSafe for StepOutcome
impl Send for StepOutcome
impl Sync for StepOutcome
impl Unpin for StepOutcome
impl UnsafeUnpin for StepOutcome
impl UnwindSafe for StepOutcome
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