pub struct BackgroundCommandManager<E: CommandExecutor> { /* private fields */ }Implementations§
Source§impl<E: CommandExecutor + 'static> BackgroundCommandManager<E>
impl<E: CommandExecutor + 'static> BackgroundCommandManager<E>
pub fn new(executor: E) -> Self
pub async fn run_command(&self, invocation: CommandInvocation) -> Result<String>
pub async fn get_task(&self, task_id: &str) -> Option<BackgroundTaskHandle>
pub async fn get_task_output( &self, task_id: &str, ) -> Option<Result<CommandOutput, String>>
pub async fn list_tasks(&self) -> Vec<BackgroundTaskHandle>
pub async fn cancel_task(&self, task_id: &str) -> Result<()>
Auto Trait Implementations§
impl<E> Freeze for BackgroundCommandManager<E>
impl<E> !RefUnwindSafe for BackgroundCommandManager<E>
impl<E> Send for BackgroundCommandManager<E>
impl<E> Sync for BackgroundCommandManager<E>
impl<E> Unpin for BackgroundCommandManager<E>
impl<E> !UnwindSafe for BackgroundCommandManager<E>
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