CollectionData

Struct CollectionData 

Source
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

Source

pub fn ui(&self, ui: &mut Ui)

Draws a simple ui.

Source

pub fn name(&self) -> &str

Collection name.

Source

pub fn handle_all(&mut self, result_handle: AnyHandler<'_>)

Сalls all handle-methods, in this order:

Source

pub fn handle_results(&mut self, handle: AnyHandler<'_>)

Handles tasks execution results using provided handle.

Source

pub fn handle_deletion(&mut self)

Handles tasks deletion.

Source

pub fn handle_progress(&mut self)

Handles tasks progress.

Source

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.