pub struct LspdArgs {
pub socket: PathBuf,
pub idle_timeout: u64,
pub request_timeout: u64,
pub log_level: String,
pub log_file: Option<PathBuf>,
}Fields§
§socket: PathBufSocket path to listen on
idle_timeout: u64Idle timeout in seconds (0 = no timeout)
request_timeout: u64Per-request LSP timeout in seconds. When a language server exceeds it, the server is killed and replaced on the next request. The env var matters because the daemon is usually auto-spawned with fixed arguments, so the environment is the only configuration channel available to whoever launches the client.
log_level: StringLog level (trace, debug, info, warn, error)
log_file: Option<PathBuf>Log file path. Required for daemon mode since stderr is redirected to /dev/null.
Trait Implementations§
Source§impl Args for LspdArgs
impl Args for LspdArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for LspdArgs
impl FromArgMatches for LspdArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for LspdArgs
impl RefUnwindSafe for LspdArgs
impl Send for LspdArgs
impl Sync for LspdArgs
impl Unpin for LspdArgs
impl UnsafeUnpin for LspdArgs
impl UnwindSafe for LspdArgs
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