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 moreAuto 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>
impl<V> Unpin for Computation<V>where
V: Unpin,
impl<V> UnwindSafe for Computation<V>where
V: 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