pub struct TaskClient { /* private fields */ }๐Deprecated: use ShutdownToken instead
Expand description
Listen for shutdown notifications, and can send error and status messages back to the
TaskManager
Implementationsยง
Sourceยงimpl TaskClient
impl TaskClient
pub fn fork<S: Into<String>>(&self, child_suffix: S) -> Self
pub fn named<S: Into<String>>(self, name: S) -> Self
pub fn with_suffix<S: Into<String>>(self, suffix: S) -> Self
pub fn dummy() -> TaskClient
pub fn is_dummy(&self) -> bool
pub fn is_shutdown(&self) -> bool
pub async fn recv(&mut self)
pub async fn recv_with_delay(&mut self)
pub async fn recv_timeout(&mut self)
pub fn is_shutdown_poll(&self) -> bool
pub fn disarm(&mut self)
pub fn rearm(&mut self)
pub fn send_we_stopped(&mut self, err: Box<dyn Error + Send + Sync>)
pub fn send_status_msg(&mut self, msg: SentStatus)
Trait Implementationsยง
Sourceยงimpl Clone for TaskClient
impl Clone for TaskClient
Sourceยงimpl Debug for TaskClient
impl Debug for TaskClient
Sourceยงimpl Drop for TaskClient
impl Drop for TaskClient
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.
Auto Trait Implementationsยง
impl !Freeze for TaskClient
impl !RefUnwindSafe for TaskClient
impl Send for TaskClient
impl Sync for TaskClient
impl Unpin for TaskClient
impl !UnwindSafe for TaskClient
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