Struct distant_core::RemoteLspProcess [−][src]
pub struct RemoteLspProcess {
pub stdin: Option<RemoteLspStdin>,
pub stdout: Option<RemoteLspStdout>,
pub stderr: Option<RemoteLspStderr>,
// some fields omitted
}
Expand description
Represents an LSP server process on a remote machine
Fields
stdin: Option<RemoteLspStdin>
stdout: Option<RemoteLspStdout>
stderr: Option<RemoteLspStderr>
Implementations
pub async fn spawn<T>(
tenant: String,
session: Session<T>,
cmd: String,
args: Vec<String>
) -> Result<Self, RemoteProcessError> where
T: DataStream + 'static,
pub async fn spawn<T>(
tenant: String,
session: Session<T>,
cmd: String,
args: Vec<String>
) -> Result<Self, RemoteProcessError> where
T: DataStream + 'static,
Spawns the specified process on the remote machine using the given session, treating the process like an LSP server
Methods from Deref<Target = RemoteProcess>
Aborts the process by forcing its response task to shutdown, which means that a call
to wait
will return an error. Note that this does not send a kill request, so if
you want to be nice you should send the request before aborting.
Submits a kill request for the running process
Trait Implementations
type Target = RemoteProcess
type Target = RemoteProcess
The resulting type after dereferencing.