Struct asynchron::ITaskHandle [−][src]
pub struct ITaskHandle<C> { /* fields omitted */ }
Expand description
Inner handle of the task,
where C: type of sync sender value.
Implementations
Suspend the task (it’s quite rare that suspending task from inside itself, unless in a particular case).
Resume the task (it’s quite rare that resuming task from inside itself, unless in a particular case).
Check if progress of the task should be suspended,
usually applied for a specific task with event loop in it.
do other things (switch) while the task is suspended.
Check if progress of the task is resumed.
Cancel the task (it’s quite rare that canceling task from inside itself, unless in a particular case).
Check if progress of the task should be canceled.
Trait Implementations
Auto Trait Implementations
impl<C> !RefUnwindSafe for ITaskHandle<C>
impl<C> Send for ITaskHandle<C> where
C: Send,
impl<C> Sync for ITaskHandle<C> where
C: Send,
impl<C> Unpin for ITaskHandle<C>
impl<C> !UnwindSafe for ITaskHandle<C>
Blanket Implementations
Mutably borrows from an owned value. Read more