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
sourceimpl<V: Clone> Clone for Computation<V>
impl<V: Clone> Clone for Computation<V>
sourcefn clone(&self) -> Computation<V>
fn clone(&self) -> Computation<V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more