pub enum WorkerResult<D: Clone> {
Ack {
task: Task<D>,
},
Nack {
task: Task<D>,
error: String,
},
}Expand description
Result sent from a worker back to the dispatcher after a task finishes.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for WorkerResult<D>
impl<D> RefUnwindSafe for WorkerResult<D>where
Task<D>: RefUnwindSafe,
impl<D> Send for WorkerResult<D>
impl<D> Sync for WorkerResult<D>
impl<D> Unpin for WorkerResult<D>
impl<D> UnsafeUnpin for WorkerResult<D>where
Task<D>: UnsafeUnpin,
impl<D> UnwindSafe for WorkerResult<D>where
Task<D>: 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