pub struct ServerStdioTransport;
Expand description
Stdio transport for server with json serialization TODO: support for other binary serialzation formats
Trait Implementations§
Source§impl Clone for ServerStdioTransport
impl Clone for ServerStdioTransport
Source§fn clone(&self) -> ServerStdioTransport
fn clone(&self) -> ServerStdioTransport
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 Default for ServerStdioTransport
impl Default for ServerStdioTransport
Source§fn default() -> ServerStdioTransport
fn default() -> ServerStdioTransport
Returns the “default value” for a type. Read more
Source§impl Transport for ServerStdioTransport
impl Transport for ServerStdioTransport
Source§fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive a message from the transport
this is blocking call
Source§fn send(
&self,
message: &Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
fn send( &self, message: &Message, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
Send a message to the transport
Auto Trait Implementations§
impl Freeze for ServerStdioTransport
impl RefUnwindSafe for ServerStdioTransport
impl Send for ServerStdioTransport
impl Sync for ServerStdioTransport
impl Unpin for ServerStdioTransport
impl UnwindSafe for ServerStdioTransport
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