pub struct TaskHandle { /* private fields */ }Expand description
A handle to a task registered with a TaskRegistry.
The handle is returned by TaskRegistry::register and is the only way
to remove that task later. It identifies the task by its index in the
registry’s insertion-ordered task list, which keeps registration and
removal O(1) for the common append-then-remove-last pattern.
Implementations§
Source§impl TaskHandle
impl TaskHandle
Trait Implementations§
Source§impl Clone for TaskHandle
impl Clone for TaskHandle
impl Copy for TaskHandle
Source§impl Debug for TaskHandle
impl Debug for TaskHandle
Source§impl PartialEq for TaskHandle
impl PartialEq for TaskHandle
Source§impl PartialOrd for TaskHandle
impl PartialOrd for TaskHandle
impl StructuralPartialEq for TaskHandle
Auto Trait Implementations§
impl Freeze for TaskHandle
impl RefUnwindSafe for TaskHandle
impl Send for TaskHandle
impl Sync for TaskHandle
impl Unpin for TaskHandle
impl UnsafeUnpin for TaskHandle
impl UnwindSafe for TaskHandle
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