pub struct TaskData { /* private fields */ }Expand description
The data of a task that is currently running.
Implementations§
Source§impl TaskData
impl TaskData
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Checks if the task finished or not.
Sourcepub fn progress(&self) -> Option<&TaskProgress>
pub fn progress(&self) -> Option<&TaskProgress>
Returns a reference to the TaskProgress of the current task if exists.
Sourcepub fn progress_mut(&mut self) -> Option<&mut TaskProgress>
pub fn progress_mut(&mut self) -> Option<&mut TaskProgress>
Returns a mutable reference to the TaskProgress of the current task if exists.
Auto Trait Implementations§
impl Freeze for TaskData
impl RefUnwindSafe for TaskData
impl Send for TaskData
impl !Sync for TaskData
impl Unpin for TaskData
impl UnwindSafe for TaskData
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