Enum broot::task_sync::Computation [−][src]
pub enum Computation<V> {
InProgress(Receiver<ComputationResult<V>>),
Finished(ComputationResult<V>),
}
Expand description
wraps either a computation in progress, or a finished one (even a failed or useless one). This can be stored in a map to avoid starting computations more than once.
Variants
InProgress(Receiver<ComputationResult<V>>)
Tuple Fields of InProgress
0: Receiver<ComputationResult<V>>
Finished(ComputationResult<V>)
Tuple Fields of Finished
0: ComputationResult<V>
Trait Implementations
Auto Trait Implementations
impl<V> RefUnwindSafe for Computation<V> where
V: RefUnwindSafe,
impl<V> Send for Computation<V> where
V: Send,
impl<V> Sync for Computation<V> where
V: Send + Sync,
impl<V> Unpin for Computation<V> where
V: Unpin,
impl<V> UnwindSafe for Computation<V> where
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more