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 !UnwindSafe for TaskClient
impl Send for TaskClient
impl Sync for TaskClient
impl Unpin for TaskClient
impl UnsafeUnpin 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