pub struct InMemoryTaskManager { /* private fields */ }Implementations§
Trait Implementations§
Source§impl TaskManager for InMemoryTaskManager
impl TaskManager for InMemoryTaskManager
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
subject: &'life1 str,
description: &'life2 str,
) -> Pin<Box<dyn Future<Output = AppResult<TaskInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = AppResult<TaskInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AppResult<Vec<TaskInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
updates: Value,
) -> Pin<Box<dyn Future<Output = AppResult<TaskInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn output<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for InMemoryTaskManager
impl !RefUnwindSafe for InMemoryTaskManager
impl Send for InMemoryTaskManager
impl Sync for InMemoryTaskManager
impl Unpin for InMemoryTaskManager
impl UnsafeUnpin for InMemoryTaskManager
impl !UnwindSafe for InMemoryTaskManager
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