pub struct ResolvedServer {
pub binary: PathBuf,
pub config: LspServerConfig,
pub init_options: Option<Value>,
}Expand description
A language server lean-ctx can start, as resolved for one project.
Fields§
§binary: PathBufThe installed server binary (or npm shim) — what users know it by.
config: LspServerConfigHow to start it (may differ from binary: an npm shim on Windows runs through Node).
init_options: Option<Value>Sent as initializationOptions.
Implementations§
Source§impl ResolvedServer
impl ResolvedServer
Sourcepub fn binary_name(&self) -> String
pub fn binary_name(&self) -> String
Display name of the server binary (gopls, tsc, …), without a
Windows extension.
Sourcepub fn binary_path(&self) -> &Path
pub fn binary_path(&self) -> &Path
Where the binary lives.
Trait Implementations§
Source§impl Clone for ResolvedServer
impl Clone for ResolvedServer
Source§impl Debug for ResolvedServer
impl Debug for ResolvedServer
Source§impl PartialEq for ResolvedServer
impl PartialEq for ResolvedServer
impl StructuralPartialEq for ResolvedServer
Auto Trait Implementations§
impl Forget for ResolvedServer
impl Freeze for ResolvedServer
impl Move for ResolvedServer
impl RefUnwindSafe for ResolvedServer
impl Send for ResolvedServer
impl Sync for ResolvedServer
impl Unpin for ResolvedServer
impl UnsafeUnpin for ResolvedServer
impl UnwindSafe for ResolvedServer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more