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
sourceimpl RemoteLspProcess
impl RemoteLspProcess
sourcepub async fn spawn(
tenant: impl Into<String>,
channel: SessionChannel,
cmd: impl Into<String>,
args: Vec<String>,
persist: bool,
pty: Option<PtySize>
) -> Result<Self, RemoteProcessError>
pub async fn spawn(
tenant: impl Into<String>,
channel: SessionChannel,
cmd: impl Into<String>,
args: Vec<String>,
persist: bool,
pty: Option<PtySize>
) -> Result<Self, RemoteProcessError>
Spawns the specified process on the remote machine using the given session, treating the process like an LSP server
Methods from Deref<Target = RemoteProcess>
sourcepub async fn status(&self) -> Option<(bool, Option<i32>)>
pub async fn status(&self) -> Option<(bool, Option<i32>)>
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<(), RemoteProcessError>
pub async fn resize(&self, size: PtySize) -> Result<(), RemoteProcessError>
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 async fn kill(&mut self) -> Result<(), RemoteProcessError>
pub async fn kill(&mut self) -> Result<(), RemoteProcessError>
Submits a kill request for the running process
sourcepub fn clone_killer(&self) -> RemoteProcessKiller
pub fn clone_killer(&self) -> RemoteProcessKiller
Clones a copy of the remote process killer
Trait Implementations
sourceimpl Debug for RemoteLspProcess
impl Debug for RemoteLspProcess
sourceimpl Deref for RemoteLspProcess
impl Deref for RemoteLspProcess
type Target = RemoteProcess
type Target = RemoteProcess
The resulting type after dereferencing.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more