pub struct ToolTaskControl { /* private fields */ }Implementations§
Source§impl ToolTaskControl
impl ToolTaskControl
pub async fn register_background_task( &self, spec: BackgroundTaskRegistration, cancel: Option<LocalBackgroundTaskCancel>, ) -> Result<(), PluginError>
pub async fn unregister_background_task(&self, task_id: &str)
pub async fn complete_background_task( &self, task_id: &str, state: BackgroundTaskState, )
pub async fn transition_background_task_live_state( &self, task_id: &str, state: BackgroundTaskState, )
pub async fn unregister_background_task_for_session( &self, session_id: &str, task_id: &str, )
pub async fn complete_background_task_for_session( &self, session_id: &str, task_id: &str, state: BackgroundTaskState, )
pub async fn transition_background_task_live_state_for_session( &self, session_id: &str, task_id: &str, state: BackgroundTaskState, )
pub async fn validate_async_handles_visible( &self, handle_ids: &[String], ) -> Result<(), PluginError>
pub async fn transfer_async_handles_to_session( &self, successor_session_id: &str, handle_ids: &[String], ) -> Result<(), PluginError>
pub async fn cancel_unreferenced_async_handles( &self, keep_handle_ids: &[String], ) -> Result<Vec<BackgroundTaskRecord>, PluginError>
Trait Implementations§
Source§impl Clone for ToolTaskControl
impl Clone for ToolTaskControl
Source§fn clone(&self) -> ToolTaskControl
fn clone(&self) -> ToolTaskControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolTaskControl
impl !RefUnwindSafe for ToolTaskControl
impl Send for ToolTaskControl
impl Sync for ToolTaskControl
impl Unpin for ToolTaskControl
impl UnsafeUnpin for ToolTaskControl
impl !UnwindSafe for ToolTaskControl
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