pub struct SimpleTaskManager { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for SimpleTaskManager
impl Default for SimpleTaskManager
Source§impl TaskManager for SimpleTaskManager
impl TaskManager for SimpleTaskManager
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 SimpleTaskManager
impl !RefUnwindSafe for SimpleTaskManager
impl Send for SimpleTaskManager
impl Sync for SimpleTaskManager
impl Unpin for SimpleTaskManager
impl UnsafeUnpin for SimpleTaskManager
impl !UnwindSafe for SimpleTaskManager
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