Struct distant_core::RemoteLspStdout
source · pub struct RemoteLspStdout { /* private fields */ }
Expand description
A handle to a remote LSP process’ standard output (stdout)
Implementations§
source§impl RemoteLspStdout
impl RemoteLspStdout
pub fn new(inner: RemoteStdout, scheme: impl Into<Option<String>>) -> Self
sourcepub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
pub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
Tries to read a complete LSP message over stdout, returning None
if no complete message
is available
sourcepub fn try_read_string(&mut self) -> Result<Option<String>>
pub fn try_read_string(&mut self) -> Result<Option<String>>
Same as try_read
, but returns a string
sourcepub async fn read_string(&mut self) -> Result<String>
pub async fn read_string(&mut self) -> Result<String>
Same as read
, but returns a string
Trait Implementations§
source§impl Debug for RemoteLspStdout
impl Debug for RemoteLspStdout
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteLspStdout
impl Send for RemoteLspStdout
impl Sync for RemoteLspStdout
impl Unpin for RemoteLspStdout
impl !UnwindSafe for RemoteLspStdout
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