pub struct LspSessionConfig {
pub cwd: String,
pub permissions: LspPermissionPolicy,
pub client: Arc<dyn LspClient>,
pub manifest: Option<LspManifest>,
pub manifest_path: Option<String>,
pub default_head_limit: Option<usize>,
pub default_timeout_ms: Option<u64>,
pub session_backstop_ms: Option<u64>,
pub server_startup_max_wait_ms: Option<u64>,
pub max_hover_markdown_bytes: Option<usize>,
pub max_preview_line_length: Option<usize>,
pub retry_counter: Arc<Mutex<HashMap<String, u64>>>,
}Fields§
§cwd: String§permissions: LspPermissionPolicy§client: Arc<dyn LspClient>§manifest: Option<LspManifest>§manifest_path: Option<String>§default_head_limit: Option<usize>§default_timeout_ms: Option<u64>§session_backstop_ms: Option<u64>§server_startup_max_wait_ms: Option<u64>§max_hover_markdown_bytes: Option<usize>§max_preview_line_length: Option<usize>§retry_counter: Arc<Mutex<HashMap<String, u64>>>Retry counter for server_starting exponential backoff. Callers
can share a Map across calls by holding the Arc themselves.
Implementations§
Trait Implementations§
Source§impl Clone for LspSessionConfig
impl Clone for LspSessionConfig
Source§fn clone(&self) -> LspSessionConfig
fn clone(&self) -> LspSessionConfig
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 moreAuto Trait Implementations§
impl Freeze for LspSessionConfig
impl !RefUnwindSafe for LspSessionConfig
impl Send for LspSessionConfig
impl Sync for LspSessionConfig
impl Unpin for LspSessionConfig
impl UnsafeUnpin for LspSessionConfig
impl !UnwindSafe for LspSessionConfig
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