pub struct TaskManagerHandle { /* private fields */ }Implementations§
Source§impl TaskManagerHandle
impl TaskManagerHandle
pub async fn next_event(&self) -> Option<TaskEvent>
pub async fn cancel(&self, task_id: TaskId) -> Result<(), TaskManagerError>
pub async fn list_running(&self) -> Vec<TaskSnapshot>
pub async fn list_completed(&self) -> Vec<TaskSnapshot>
pub async fn drain_ready_items(&self) -> Vec<Item>
pub async fn set_continue_policy( &self, task_id: TaskId, policy: ContinuePolicy, ) -> Result<(), TaskManagerError>
pub async fn set_delivery_mode( &self, task_id: TaskId, mode: DeliveryMode, ) -> Result<(), TaskManagerError>
Sourcepub async fn wait_for_idle(&self)
pub async fn wait_for_idle(&self)
Wait until all running tasks have completed.
Trait Implementations§
Source§impl Clone for TaskManagerHandle
impl Clone for TaskManagerHandle
Source§fn clone(&self) -> TaskManagerHandle
fn clone(&self) -> TaskManagerHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskManagerHandle
impl !RefUnwindSafe for TaskManagerHandle
impl Send for TaskManagerHandle
impl Sync for TaskManagerHandle
impl Unpin for TaskManagerHandle
impl UnsafeUnpin for TaskManagerHandle
impl !UnwindSafe for TaskManagerHandle
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