pub struct CollectionData { /* private fields */ }Expand description
Collection holds the tasks in the queue and the data of currently executing ones.
It uses TaskExecutor to determine when a new task should
start it’s execution.
Implementations§
Source§impl CollectionData
impl CollectionData
Sourcepub fn handle_all(&mut self, result_handle: AnyHandler<'_>)
pub fn handle_all(&mut self, result_handle: AnyHandler<'_>)
Сalls all handle-methods, in this order:
Sourcepub fn handle_results(&mut self, handle: AnyHandler<'_>)
pub fn handle_results(&mut self, handle: AnyHandler<'_>)
Handles tasks execution results using provided handle.
Sourcepub fn handle_deletion(&mut self)
pub fn handle_deletion(&mut self)
Handles tasks deletion.
Sourcepub fn handle_progress(&mut self)
pub fn handle_progress(&mut self)
Handles tasks progress.
Sourcepub fn handle_execution(&mut self)
pub fn handle_execution(&mut self)
Handles tasks execution.
More specifically it calls TasksExecutor::poll method
which decides if the task is ready to be executed. This method will call poll
as long as it returns ExecutionPoll::Ready which means
that there’s still tasks to execute. If ExecutionPoll::Pending
is returned it will stop the polling.
Auto Trait Implementations§
impl Freeze for CollectionData
impl !RefUnwindSafe for CollectionData
impl !Send for CollectionData
impl !Sync for CollectionData
impl Unpin for CollectionData
impl !UnwindSafe for CollectionData
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