pub enum UnitOutcome<P> {
Ok(P),
Panicked(String),
}Expand description
What became of one dispatched unit.
Variants§
Ok(P)
The unit ran and returned its output.
Panicked(String)
The unit panicked. The string is the panic payload for diagnostics; the pool recycled the worker that ran it.
Auto Trait Implementations§
impl<P> Freeze for UnitOutcome<P>where
P: Freeze,
impl<P> RefUnwindSafe for UnitOutcome<P>where
P: RefUnwindSafe,
impl<P> Send for UnitOutcome<P>where
P: Send,
impl<P> Sync for UnitOutcome<P>where
P: Sync,
impl<P> Unpin for UnitOutcome<P>where
P: Unpin,
impl<P> UnsafeUnpin for UnitOutcome<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for UnitOutcome<P>where
P: 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