pub struct LspClient {
pub process_id: u32,
/* private fields */
}Fields§
§process_id: u32Implementations§
Source§impl LspClient
impl LspClient
pub async fn start(workspace_root: &Path) -> Result<Self>
pub async fn shutdown(&self)
pub async fn query_symbol( &self, name: &str, kind_filter: &str, exact: bool, include_body: bool, max_lines: usize, ) -> Result<Vec<SymbolItem>>
pub async fn query_outline( &self, file: &Path, include_body: bool, max_lines: usize, ) -> Result<Vec<OutlineItem>>
pub async fn query_definition( &self, file: &Path, line: u32, col: u32, include_body: bool, max_lines: usize, ) -> Result<Vec<DefinitionItem>>
pub async fn query_references( &self, file: &Path, line: u32, col: u32, ) -> Result<Vec<ReferenceItem>>
pub async fn query_calls( &self, file: &Path, line: u32, col: u32, direction: CallDirection, depth: u32, ) -> Result<Vec<CallItem>>
pub async fn query_relations( &self, file: &Path, line: u32, col: u32, mode: RelationMode, ) -> Result<Vec<RelationItem>>
pub async fn query_hover( &self, file: &Path, line: u32, col: u32, ) -> Result<Option<HoverItem>>
pub async fn query_body( &self, file: &Path, line: u32, col: u32, max_lines: usize, ) -> Result<BodyItem>
Auto Trait Implementations§
impl !RefUnwindSafe for LspClient
impl !UnwindSafe for LspClient
impl Freeze for LspClient
impl Send for LspClient
impl Sync for LspClient
impl Unpin for LspClient
impl UnsafeUnpin for LspClient
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