pub struct AsyncTaskManager { /* private fields */ }Implementations§
Source§impl AsyncTaskManager
impl AsyncTaskManager
pub fn new() -> Self
pub fn routing(self, policy: impl TaskRoutingPolicy + 'static) -> Self
Trait Implementations§
Source§impl Default for AsyncTaskManager
impl Default for AsyncTaskManager
Source§impl TaskManager for AsyncTaskManager
impl TaskManager for AsyncTaskManager
fn start_task<'life0, 'async_trait>(
&'life0 self,
request: TaskLaunchRequest,
ctx: TaskStartContext,
) -> Pin<Box<dyn Future<Output = Result<TaskStartOutcome, TaskManagerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait_for_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
turn_id: &'life1 TurnId,
cancellation: Option<TurnCancellation>,
) -> Pin<Box<dyn Future<Output = Result<Option<TurnTaskUpdate>, TaskManagerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn take_pending_loop_updates<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PendingLoopUpdates, TaskManagerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_turn_interrupted<'life0, 'life1, 'async_trait>(
&'life0 self,
turn_id: &'life1 TurnId,
) -> Pin<Box<dyn Future<Output = Result<(), TaskManagerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle(&self) -> TaskManagerHandle
Auto Trait Implementations§
impl Freeze for AsyncTaskManager
impl !RefUnwindSafe for AsyncTaskManager
impl Send for AsyncTaskManager
impl Sync for AsyncTaskManager
impl Unpin for AsyncTaskManager
impl UnsafeUnpin for AsyncTaskManager
impl !UnwindSafe for AsyncTaskManager
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