#[non_exhaustive]pub enum Step<T> {
Progress {
done: u32,
total: Option<u32>,
phase: Phase,
},
Done(T),
}Expand description
What a step returns: progress, or the job’s result (Rust-only; edges expose a concrete record per job, ADR 0028 F3).
Added in 0.2.0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Progress
The job is not done: done of total units of its current phase (total None
when unknown).
Fields
Done(T)
The job finished with its result; stepping again fails with job-finished.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Step<T>
Auto Trait Implementations§
impl<T> Forget for Step<T>
impl<T> Freeze for Step<T>where
T: Freeze,
impl<T> Move for Step<T>
impl<T> RefUnwindSafe for Step<T>where
T: RefUnwindSafe,
impl<T> Send for Step<T>where
T: Send,
impl<T> Sync for Step<T>where
T: Sync,
impl<T> Unpin for Step<T>where
T: Unpin,
impl<T> UnsafeUnpin for Step<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Step<T>where
T: UnwindSafe,
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