pub enum TaskResult<T> {
    Completed(T),
    Cancelled,
}Expand description
The result of a spawned task.
Variants§
Trait Implementations§
Source§impl<T: Debug> Debug for TaskResult<T>
 
impl<T: Debug> Debug for TaskResult<T>
Auto Trait Implementations§
impl<T> Freeze for TaskResult<T>where
    T: Freeze,
impl<T> RefUnwindSafe for TaskResult<T>where
    T: RefUnwindSafe,
impl<T> Send for TaskResult<T>where
    T: Send,
impl<T> Sync for TaskResult<T>where
    T: Sync,
impl<T> Unpin for TaskResult<T>where
    T: Unpin,
impl<T> UnwindSafe for TaskResult<T>where
    T: 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