pub struct StdioTransport { /* private fields */ }Expand description
A running stdio server.
Implementations§
Source§impl StdioTransport
impl StdioTransport
Sourcepub fn new(options: StdioOptions) -> StdioTransport
pub fn new(options: StdioOptions) -> StdioTransport
A transport that starts options when the client connects.
Sourcepub async fn start(&self, events: Events) -> Result<(), McpError>
pub async fn start(&self, events: Events) -> Result<(), McpError>
Starts the server and sends its messages and exit to events.
Auto Trait Implementations§
impl !Freeze for StdioTransport
impl !RefUnwindSafe for StdioTransport
impl Forget for StdioTransport
impl Send for StdioTransport
impl Sync for StdioTransport
impl Unpin for StdioTransport
impl UnsafeUnpin for StdioTransport
impl UnwindSafe for StdioTransport
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