Struct distant_core::RemoteLspProcess
source · pub struct RemoteLspProcess {
pub stdin: Option<RemoteLspStdin>,
pub stdout: Option<RemoteLspStdout>,
pub stderr: Option<RemoteLspStderr>,
/* private fields */
}
Expand description
Represents an LSP server process on a remote machine
Fields§
§stdin: Option<RemoteLspStdin>
§stdout: Option<RemoteLspStdout>
§stderr: Option<RemoteLspStderr>
Implementations§
source§impl RemoteLspProcess
impl RemoteLspProcess
sourcepub async fn wait(self) -> Result<RemoteStatus>
pub async fn wait(self) -> Result<RemoteStatus>
Waits for the process to terminate, returning the success status and an optional exit code
Methods from Deref<Target = RemoteProcess>§
sourcepub async fn status(&self) -> Option<RemoteStatus>
pub async fn status(&self) -> Option<RemoteStatus>
Checks if the process has completed, returning the exit status if it has, without
consuming the process itself. Note that this does not include join errors that can
occur when aborting and instead converts any error to a status of false. To acquire
the actual error, you must call wait
sourcepub async fn resize(&self, size: PtySize) -> Result<()>
pub async fn resize(&self, size: PtySize) -> Result<()>
Resizes the pty of the remote process if it is attached to one
sourcepub fn clone_resizer(&self) -> RemoteProcessResizer
pub fn clone_resizer(&self) -> RemoteProcessResizer
Clones a copy of the remote process pty resizer
sourcepub fn clone_killer(&self) -> RemoteProcessKiller
pub fn clone_killer(&self) -> RemoteProcessKiller
Clones a copy of the remote process killer
Trait Implementations§
source§impl Debug for RemoteLspProcess
impl Debug for RemoteLspProcess
source§impl Deref for RemoteLspProcess
impl Deref for RemoteLspProcess
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteLspProcess
impl Send for RemoteLspProcess
impl Sync for RemoteLspProcess
impl Unpin for RemoteLspProcess
impl !UnwindSafe for RemoteLspProcess
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