pub struct StdioClientTransport { /* private fields */ }Expand description
Client transport that communicates with a subprocess via stdio
Implementations§
Trait Implementations§
Source§impl ClientTransport for StdioClientTransport
impl ClientTransport for StdioClientTransport
Source§fn request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a request and receive a response
Source§fn notify<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn notify<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a notification (no response expected)
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Check if the transport is still connected
Auto Trait Implementations§
impl !Freeze for StdioClientTransport
impl !RefUnwindSafe for StdioClientTransport
impl Send for StdioClientTransport
impl Sync for StdioClientTransport
impl Unpin for StdioClientTransport
impl !UnwindSafe for StdioClientTransport
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