pub enum BatchState<R, H: PendingHandle> {
Pending(H),
Ready(Vec<WorkResult<R>>),
}Expand description
The state of a polled batch.
Variants§
Pending(H)
Still processing. The handle should be polled again later.
Ready(Vec<WorkResult<R>>)
All results are available.
Auto Trait Implementations§
impl<R, H> Freeze for BatchState<R, H>where
H: Freeze,
impl<R, H> RefUnwindSafe for BatchState<R, H>where
H: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, H> Send for BatchState<R, H>where
R: Send,
impl<R, H> Sync for BatchState<R, H>
impl<R, H> Unpin for BatchState<R, H>
impl<R, H> UnsafeUnpin for BatchState<R, H>where
H: UnsafeUnpin,
impl<R, H> UnwindSafe for BatchState<R, H>where
H: UnwindSafe,
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