pub struct AsyncStdioTransport { /* private fields */ }Expand description
Async stdio transport for LSP messages
Implementations§
Source§impl AsyncStdioTransport
impl AsyncStdioTransport
Sourcepub async fn read_message(&mut self) -> LspResult<LspMessage>
pub async fn read_message(&mut self) -> LspResult<LspMessage>
Read a message from stdin asynchronously
Sourcepub async fn write_message(&mut self, message: &LspMessage) -> LspResult<()>
pub async fn write_message(&mut self, message: &LspMessage) -> LspResult<()>
Write a message to stdout asynchronously
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncStdioTransport
impl RefUnwindSafe for AsyncStdioTransport
impl Send for AsyncStdioTransport
impl Sync for AsyncStdioTransport
impl Unpin for AsyncStdioTransport
impl UnwindSafe for AsyncStdioTransport
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