pub struct LspServerConfig {
pub key: &'static str,
pub env_vars: &'static [&'static str],
pub default_command: &'static [&'static str],
}Expand description
Configuration for an LSP server.
Defines how to locate and run the language server.
§Examples
use iced_code_editor::lsp_server_config;
if let Some(config) = lsp_server_config("rust-analyzer") {
println!("key: {}", config.key);
}Fields§
§key: &'static strUnique identifier for this server configuration
env_vars: &'static [&'static str]Environment variables to check for custom server paths (checked in order)
default_command: &'static [&'static str]Default command and arguments to run the server
Trait Implementations§
Source§impl Clone for LspServerConfig
impl Clone for LspServerConfig
Source§fn clone(&self) -> LspServerConfig
fn clone(&self) -> LspServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LspServerConfig
Auto Trait Implementations§
impl Freeze for LspServerConfig
impl RefUnwindSafe for LspServerConfig
impl Send for LspServerConfig
impl Sync for LspServerConfig
impl Unpin for LspServerConfig
impl UnsafeUnpin for LspServerConfig
impl UnwindSafe for LspServerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.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