pub enum TaskResult<R> {
Completed(R),
Cancelled,
}Expand description
Terminal fact emitted by a Task.
Variants§
Completed(R)
The task accepted exactly one owned result.
Cancelled
The task accepted cancellation before a result.
Trait Implementations§
Source§impl<R: Clone> Clone for TaskResult<R>
impl<R: Clone> Clone for TaskResult<R>
Source§fn clone(&self) -> TaskResult<R>
fn clone(&self) -> TaskResult<R>
Returns a duplicate 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 moreSource§impl<R: Debug> Debug for TaskResult<R>
impl<R: Debug> Debug for TaskResult<R>
Source§impl<R: PartialEq> PartialEq for TaskResult<R>
impl<R: PartialEq> PartialEq for TaskResult<R>
impl<R: Eq> Eq for TaskResult<R>
impl<R> StructuralPartialEq for TaskResult<R>
Auto Trait Implementations§
impl<R> Freeze for TaskResult<R>where
R: Freeze,
impl<R> RefUnwindSafe for TaskResult<R>where
R: RefUnwindSafe,
impl<R> Send for TaskResult<R>where
R: Send,
impl<R> Sync for TaskResult<R>where
R: Sync,
impl<R> Unpin for TaskResult<R>where
R: Unpin,
impl<R> UnsafeUnpin for TaskResult<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for TaskResult<R>where
R: 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