pub struct TaskRegistry { /* private fields */ }Expand description
Registers ActionTask values with a running Executor.
Each successful registration returns a TaskHandle that can be used to:
- query whether the task is still running or has reached a terminal state
- request cooperative abort for the task
Trait Implementations§
Source§impl Clone for TaskRegistry
impl Clone for TaskRegistry
Source§fn clone(&self) -> TaskRegistry
fn clone(&self) -> TaskRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskRegistry
impl Debug for TaskRegistry
Source§impl RegisterTask<TaskHandle> for TaskRegistry
impl RegisterTask<TaskHandle> for TaskRegistry
fn register(&self, task: ActionTask) -> Result<TaskHandle>
Auto Trait Implementations§
impl Freeze for TaskRegistry
impl RefUnwindSafe for TaskRegistry
impl Send for TaskRegistry
impl Sync for TaskRegistry
impl Unpin for TaskRegistry
impl UnsafeUnpin for TaskRegistry
impl UnwindSafe for TaskRegistry
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