pub enum LongRunningOutcome<T, S> {
Complete(T),
Suspend(S),
}Expand description
Represents the outcome of a long-running process.
Variants§
Complete(T)
Processing is complete with result
Suspend(S)
Processing needs to be suspended with saved state
Trait Implementations§
Auto Trait Implementations§
impl<T, S> Freeze for LongRunningOutcome<T, S>
impl<T, S> RefUnwindSafe for LongRunningOutcome<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for LongRunningOutcome<T, S>
impl<T, S> Sync for LongRunningOutcome<T, S>
impl<T, S> Unpin for LongRunningOutcome<T, S>
impl<T, S> UnsafeUnpin for LongRunningOutcome<T, S>where
T: UnsafeUnpin,
S: UnsafeUnpin,
impl<T, S> UnwindSafe for LongRunningOutcome<T, S>where
T: UnwindSafe,
S: 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