pub struct HostToolRuntime { /* private fields */ }Expand description
Runtime that starts linked tools through the shared dispatcher.
Implementations§
Source§impl HostToolRuntime
impl HostToolRuntime
Sourcepub fn new(
dispatcher: Arc<TransactionToolDispatcher>,
exchange_id: ExchangeId,
) -> Self
pub fn new( dispatcher: Arc<TransactionToolDispatcher>, exchange_id: ExchangeId, ) -> Self
Construct for one transaction / exchange scope.
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