pub struct JobsGroup<T>(/* private fields */);Implementations§
Source§impl<T> JobsGroup<T>
impl<T> JobsGroup<T>
pub fn new<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Job<T>>,
pub fn try_consume(self) -> Result<Vec<T>, Self>
pub fn consume(self) -> Vec<T>
pub fn is_all_complete(&self) -> bool
pub fn is_any_dead(&self) -> bool
pub fn is_any_running(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for JobsGroup<T>
impl<T> RefUnwindSafe for JobsGroup<T>where
T: RefUnwindSafe,
impl<T> Send for JobsGroup<T>where
T: Send,
impl<T> Sync for JobsGroup<T>where
T: Sync,
impl<T> Unpin for JobsGroup<T>where
T: Unpin,
impl<T> UnwindSafe for JobsGroup<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