Enum broot::task_sync::Computation
source · 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>>)
Finished(ComputationResult<V>)
Trait Implementations§
source§impl<V: Clone> Clone for Computation<V>
impl<V: Clone> Clone for Computation<V>
source§fn clone(&self) -> Computation<V>
fn clone(&self) -> Computation<V>
Returns a copy 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 more