pub struct ManagedStdioRuntime { /* private fields */ }Expand description
Running stdio MCP server along with its pipes.
Implementations§
Source§impl ManagedStdioRuntime
impl ManagedStdioRuntime
Sourcepub fn tools(&self) -> Option<&McpToolConfig>
pub fn tools(&self) -> Option<&McpToolConfig>
Tool allow/deny hints if provided.
Sourcepub fn stdin_mut(&mut self) -> &mut ChildStdin
pub fn stdin_mut(&mut self) -> &mut ChildStdin
Writable pipe to the server.
Sourcepub fn stdout_mut(&mut self) -> &mut ChildStdout
pub fn stdout_mut(&mut self) -> &mut ChildStdout
Readable pipe from the server.
Sourcepub fn stderr_mut(&mut self) -> Option<&mut ChildStderr>
pub fn stderr_mut(&mut self) -> Option<&mut ChildStderr>
Optional stderr pipe from the server.
Sourcepub async fn stop(&mut self) -> Result<(), McpRuntimeError>
pub async fn stop(&mut self) -> Result<(), McpRuntimeError>
Terminate the process and wait for exit (best-effort).
Trait Implementations§
Source§impl Debug for ManagedStdioRuntime
impl Debug for ManagedStdioRuntime
Auto Trait Implementations§
impl Freeze for ManagedStdioRuntime
impl !RefUnwindSafe for ManagedStdioRuntime
impl Send for ManagedStdioRuntime
impl Sync for ManagedStdioRuntime
impl Unpin for ManagedStdioRuntime
impl UnsafeUnpin for ManagedStdioRuntime
impl !UnwindSafe for ManagedStdioRuntime
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