Struct asynchron::TaskHandle [−][src]
pub struct TaskHandle<C, T, E> { /* fields omitted */ }
Expand description
Handle of the task,
Implementations
Try (it won’t block the current thread) to do the task now,
and then try to get the progress from the original task (if the task is in progress).
Send signal to the inner task handle that the task should be suspended.
this won’t do anything if not explicitly configured inside the task.
Check if progress of the task is suspended.
Send signal to the inner task handle that the task should be canceled.
this won’t do anything if not explicitly configured inside the task.
Check if progress of the task is canceled.
Check if the task is in progress.
Trait Implementations
Auto Trait Implementations
impl<C, T, E> !RefUnwindSafe for TaskHandle<C, T, E>
impl<C, T, E> Send for TaskHandle<C, T, E> where
C: Send,
E: Send,
T: Send,
impl<C, T, E> Sync for TaskHandle<C, T, E> where
C: Send,
E: Send,
T: Send,
impl<C, T, E> Unpin for TaskHandle<C, T, E>
impl<C, T, E> !UnwindSafe for TaskHandle<C, T, E>
Blanket Implementations
Mutably borrows from an owned value. Read more