pub struct ToolRunnerProxy { /* private fields */ }
Implementations§
source§impl ToolRunnerProxy
impl ToolRunnerProxy
sourcepub fn take_event_stream(&self) -> ToolRunnerEventStream
pub fn take_event_stream(&self) -> ToolRunnerEventStream
Get a Stream of events from the remote end of the ToolRunner protocol
Panics
Panics if the event stream was already taken.
sourcepub fn run_tool(
&self,
tool: &str,
args: Option<&[String]>,
stdio_params: StdioParams,
close_controller: ServerEnd<CloseControllerMarker>
) -> QueryResponseFut<ToolRunnerRunToolResult>
pub fn run_tool( &self, tool: &str, args: Option<&[String]>, stdio_params: StdioParams, close_controller: ServerEnd<CloseControllerMarker> ) -> QueryResponseFut<ToolRunnerRunToolResult>
Run a tool.
Trait Implementations§
source§impl Clone for ToolRunnerProxy
impl Clone for ToolRunnerProxy
source§fn clone(&self) -> ToolRunnerProxy
fn clone(&self) -> ToolRunnerProxy
Returns a copy of the value. Read more
1.0.0 · 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 ToolRunnerProxy
impl Debug for ToolRunnerProxy
source§impl Proxy for ToolRunnerProxy
impl Proxy for ToolRunnerProxy
§type Protocol = ToolRunnerMarker
type Protocol = ToolRunnerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
source§impl ToolRunnerProxyInterface for ToolRunnerProxy
impl ToolRunnerProxyInterface for ToolRunnerProxy
type RunToolResponseFut = QueryResponseFut<Result<(), i32>>
fn run_tool( &self, tool: &str, args: Option<&[String]>, stdio_params: StdioParams, close_controller: ServerEnd<CloseControllerMarker> ) -> Self::RunToolResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for ToolRunnerProxy
impl Send for ToolRunnerProxy
impl Sync for ToolRunnerProxy
impl Unpin for ToolRunnerProxy
impl !UnwindSafe for ToolRunnerProxy
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