pub enum JobOutcome<T> {
Running,
Complete(T),
Invalidated,
Expired,
}Expand description
Only Complete contains a result. Running never exposes a prefix as an exact total.
Variants§
Running
More input remains, or exhaustion has not yet been observed.
Complete(T)
Exact result for the captured source revision, retained until expiry/cancellation.
Invalidated
The source entity changed before completion. Start a new job explicitly.
Expired
The host-captured time reached the fixed expiry. Cleanup is explicit.
Trait Implementations§
Source§impl<T: Debug> Debug for JobOutcome<T>
impl<T: Debug> Debug for JobOutcome<T>
impl<T: Eq> Eq for JobOutcome<T>
Source§impl<T: PartialEq> PartialEq for JobOutcome<T>
impl<T: PartialEq> PartialEq for JobOutcome<T>
impl<T: PartialEq> StructuralPartialEq for JobOutcome<T>
Auto Trait Implementations§
impl<T> Forget for JobOutcome<T>
impl<T> Freeze for JobOutcome<T>where
T: Freeze,
impl<T> Move for JobOutcome<T>
impl<T> RefUnwindSafe for JobOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for JobOutcome<T>where
T: Send,
impl<T> Sync for JobOutcome<T>where
T: Sync,
impl<T> Unpin for JobOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for JobOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JobOutcome<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