pub enum TaskHandle {
Internal(TaskManager),
External(TaskClient),
}๐Deprecated
Variantsยง
Internal(TaskManager)
๐Deprecated
Full TaskManager that was created by the underlying task.
External(TaskClient)
๐Deprecated
[TaskClient] that was passed from an external task, that controls the shutdown process.
Implementationsยง
Sourceยงimpl TaskHandle
impl TaskHandle
pub fn name_if_unnamed<S: Into<String>>(self, name: S) -> Self
pub fn named<S: Into<String>>(self, name: S) -> Self
pub fn fork<S: Into<String>>(&self, child_suffix: S) -> TaskClient
pub fn get_handle(&self) -> TaskClient
pub fn try_into_task_manager(self) -> Option<TaskManager>
pub async fn wait_for_shutdown(self) -> Result<(), Box<dyn Error + Send + Sync>>
Trait Implementationsยง
Sourceยงimpl Debug for TaskHandle
impl Debug for TaskHandle
Sourceยงimpl Default for TaskHandle
impl Default for TaskHandle
Sourceยงimpl From<TaskClient> for TaskHandle
impl From<TaskClient> for TaskHandle
Sourceยงfn from(value: TaskClient) -> Self
fn from(value: TaskClient) -> Self
Converts to this type from the input type.
Sourceยงimpl From<TaskManager> for TaskHandle
impl From<TaskManager> for TaskHandle
Sourceยงfn from(value: TaskManager) -> Self
fn from(value: TaskManager) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl !Freeze for TaskHandle
impl !RefUnwindSafe for TaskHandle
impl Send for TaskHandle
impl Sync for TaskHandle
impl Unpin 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