pub struct ToolSessionProcessAdmin<'run> { /* private fields */ }Implementations§
Source§impl ToolSessionProcessAdmin<'_>
impl ToolSessionProcessAdmin<'_>
Sourcepub async fn start(
&self,
request: ProcessStartRequest,
) -> Result<ProcessHandleSummary, PluginError>
pub async fn start( &self, request: ProcessStartRequest, ) -> Result<ProcessHandleSummary, PluginError>
Start a process owned by this session and registered to wake it,
returning its public handle summary. Routes through the same
crate::ProcessService::start_from_request path the runtime uses for
every request-shaped process start, so the child is provider-re-supplied,
durable, and recoverable through the worker.
Sourcepub async fn complete_external(
&self,
process_id: &str,
await_output: ProcessAwaitOutput,
) -> Result<ProcessRecord, PluginError>
pub async fn complete_external( &self, process_id: &str, await_output: ProcessAwaitOutput, ) -> Result<ProcessRecord, PluginError>
Record the terminal outcome of an Externally-Owned process this session
owns (ADR 0019). A shell.start detach registers its launch as an
Externally-Owned row and immediately completes it with the launch
identity — lash never claims it as running. Only Externally-Owned rows
accept this out-of-band completion.
Sourcepub async fn await_process(
&self,
process_id: &str,
) -> Result<ProcessAwaitOutput, PluginError>
pub async fn await_process( &self, process_id: &str, ) -> Result<ProcessAwaitOutput, PluginError>
Await a process started from this session to its terminal output.
pub async fn list_handles( &self, ) -> Result<Vec<ProcessHandleSummary>, PluginError>
pub async fn list_all_handles( &self, ) -> Result<Vec<ProcessHandleSummary>, PluginError>
pub async fn list_handles_filtered( &self, filter: &ProcessListFilter, ) -> Result<Vec<ProcessHandleSummary>, PluginError>
pub async fn validate_handles( &self, handle_ids: &[String], ) -> Result<(), PluginError>
pub async fn cancel( &self, process_id: &str, ) -> Result<ProcessCancelSummary, PluginError>
pub async fn signal( &self, process_id: &str, signal_name: &str, payload: Value, ) -> Result<ProcessEvent, PluginError>
pub async fn cancel_all(&self) -> Result<Vec<ProcessCancelSummary>, PluginError>
pub async fn transfer_handles( &self, to_session_id: &str, process_ids: Vec<String>, ) -> Result<(), PluginError>
pub async fn transfer_handles_to_frame( &self, to_agent_frame_id: &str, process_ids: Vec<String>, ) -> Result<(), PluginError>
pub async fn cancel_unreferenced_handles( &self, keep_process_ids: Vec<String>, ) -> Result<Vec<ProcessCancelSummary>, PluginError>
Trait Implementations§
Source§impl<'run> Clone for ToolSessionProcessAdmin<'run>
impl<'run> Clone for ToolSessionProcessAdmin<'run>
Source§fn clone(&self) -> ToolSessionProcessAdmin<'run>
fn clone(&self) -> ToolSessionProcessAdmin<'run>
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<'run> !RefUnwindSafe for ToolSessionProcessAdmin<'run>
impl<'run> !UnwindSafe for ToolSessionProcessAdmin<'run>
impl<'run> Freeze for ToolSessionProcessAdmin<'run>
impl<'run> Send for ToolSessionProcessAdmin<'run>
impl<'run> Sync for ToolSessionProcessAdmin<'run>
impl<'run> Unpin for ToolSessionProcessAdmin<'run>
impl<'run> UnsafeUnpin for ToolSessionProcessAdmin<'run>
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