pub enum WorkQueueOutcome<T> {
Queued {
depth: usize,
},
Dispatched {
queued: usize,
},
Rejected {
value: T,
reason: WorkQueueRejection,
},
}Expand description
Factual result of one submission.
Variants§
Queued
Value is retained pending worker availability.
Dispatched
Value was assigned to an available worker.
Rejected
Value was not admitted; ownership is returned.
Trait Implementations§
Source§impl<T: Debug> Debug for WorkQueueOutcome<T>
impl<T: Debug> Debug for WorkQueueOutcome<T>
Source§impl<T: PartialEq> PartialEq for WorkQueueOutcome<T>
impl<T: PartialEq> PartialEq for WorkQueueOutcome<T>
impl<T: Eq> Eq for WorkQueueOutcome<T>
impl<T> StructuralPartialEq for WorkQueueOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for WorkQueueOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkQueueOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for WorkQueueOutcome<T>where
T: Send,
impl<T> Sync for WorkQueueOutcome<T>where
T: Sync,
impl<T> Unpin for WorkQueueOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for WorkQueueOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WorkQueueOutcome<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