pub struct TaskSet<T, E>where
T: 'static,
E: 'static,{ /* private fields */ }
Expand description
Holds a collection of Promise<T, E>
s and ensures that each executes to completion.
Destroying a TaskSet
automatically cancels all of its unfinished promises.
Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for TaskSet<T, E>
impl<T, E> !RefUnwindSafe for TaskSet<T, E>
impl<T, E> !Send for TaskSet<T, E>
impl<T, E> !Sync for TaskSet<T, E>
impl<T, E> Unpin for TaskSet<T, E>
impl<T, E> !UnwindSafe for TaskSet<T, E>
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