pub struct HostToolRuntime { /* private fields */ }Expand description
Runtime that starts linked tools through the shared dispatcher.
Implementations§
Source§impl HostToolRuntime
impl HostToolRuntime
Sourcepub fn with_spawner(
dispatcher: Arc<TransactionToolDispatcher>,
exchange_id: ExchangeId,
transaction_id: TransactionId,
spawner: TransactionTaskSpawner,
transaction_deadline: Instant,
) -> Self
pub fn with_spawner( dispatcher: Arc<TransactionToolDispatcher>, exchange_id: ExchangeId, transaction_id: TransactionId, spawner: TransactionTaskSpawner, transaction_deadline: Instant, ) -> Self
Supervisor-owned tool workers (no ambient tokio::spawn; Law 23).
Trait Implementations§
Source§impl ToolRuntime for HostToolRuntime
impl ToolRuntime for HostToolRuntime
Source§fn start(
&self,
request: StartToolExecution,
) -> Result<ToolExecutionHandle, ToolRuntimeError>
fn start( &self, request: StartToolExecution, ) -> Result<ToolExecutionHandle, ToolRuntimeError>
Start a tool execution. Must not be called when registry always unavailable.
Auto Trait Implementations§
impl !RefUnwindSafe for HostToolRuntime
impl !UnwindSafe for HostToolRuntime
impl Freeze for HostToolRuntime
impl Send for HostToolRuntime
impl Sync for HostToolRuntime
impl Unpin for HostToolRuntime
impl UnsafeUnpin for HostToolRuntime
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