pub struct ProcessIsolatedToolHandler { /* private fields */ }Expand description
Host tool that runs in a real OS child process (V2 §14.3).
Implementations§
Source§impl ProcessIsolatedToolHandler
impl ProcessIsolatedToolHandler
Sourcepub fn new(command: ProcessToolCommand) -> Self
pub fn new(command: ProcessToolCommand) -> Self
Construct from a command recipe.
Sourcepub fn sleep_until_killed(seconds: u64) -> Self
pub fn sleep_until_killed(seconds: u64) -> Self
Qualification helper: child sleeps until OS kill.
Sourcepub fn with_pid_slot(self, slot: Arc<AtomicU32>) -> Self
pub fn with_pid_slot(self, slot: Arc<AtomicU32>) -> Self
Record the OS child PID into slot as soon as spawn succeeds (tests / sacrificial).
Trait Implementations§
Source§impl Clone for ProcessIsolatedToolHandler
impl Clone for ProcessIsolatedToolHandler
Source§fn clone(&self) -> ProcessIsolatedToolHandler
fn clone(&self) -> ProcessIsolatedToolHandler
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 moreSource§impl Debug for ProcessIsolatedToolHandler
impl Debug for ProcessIsolatedToolHandler
Source§impl ToolHandler for ProcessIsolatedToolHandler
impl ToolHandler for ProcessIsolatedToolHandler
Source§fn start(
&self,
call: ToolCall,
context: ToolCallContext,
) -> Result<LinkedToolExecutionHandle, ToolStartError>
fn start( &self, call: ToolCall, context: ToolCallContext, ) -> Result<LinkedToolExecutionHandle, ToolStartError>
Start one execution. Must return a handle with a single completion.
Source§fn supports_abort(&self) -> bool
fn supports_abort(&self) -> bool
Whether cooperative/abort cancellation is honored (D-024 / D-028).
Default false (fail-closed): capability booleans must not self-assert.
Source§fn supports_isolated_kill(&self) -> bool
fn supports_isolated_kill(&self) -> bool
Whether isolated kill after grace is available (D-024 / D-028).
Default false (fail-closed). For process-isolated tool classes,
registration also requires
Self::os_process_isolated.Source§fn os_process_isolated(&self) -> bool
fn os_process_isolated(&self) -> bool
Structural OS process isolation boundary (V2 §14.3). Read more
Source§fn runtime_owns_abortable_drive(&self) -> bool
fn runtime_owns_abortable_drive(&self) -> bool
Structural AbortableAtYield ownership (V2 §14.2 / D-050). Read more
Auto Trait Implementations§
impl Freeze for ProcessIsolatedToolHandler
impl RefUnwindSafe for ProcessIsolatedToolHandler
impl Send for ProcessIsolatedToolHandler
impl Sync for ProcessIsolatedToolHandler
impl Unpin for ProcessIsolatedToolHandler
impl UnsafeUnpin for ProcessIsolatedToolHandler
impl UnwindSafe for ProcessIsolatedToolHandler
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