pub struct LspServer { /* private fields */ }
Expand description
LSP server instance manager.
Implementations§
Source§impl LspServer
impl LspServer
Sourcepub fn new<I: Into<String>>(id: I, config: LspServerConfig) -> Self
pub fn new<I: Into<String>>(id: I, config: LspServerConfig) -> Self
Create a new LSP server instance.
Sourcepub fn config(&self) -> &LspServerConfig
pub fn config(&self) -> &LspServerConfig
Get the server configuration.
Sourcepub async fn state(&self) -> ServerState
pub async fn state(&self) -> ServerState
Get the current server state.
Sourcepub async fn capabilities(&self) -> Option<ServerCapabilities>
pub async fn capabilities(&self) -> Option<ServerCapabilities>
Get the server capabilities.
Auto Trait Implementations§
impl Freeze for LspServer
impl !RefUnwindSafe for LspServer
impl Send for LspServer
impl Sync for LspServer
impl Unpin for LspServer
impl !UnwindSafe for LspServer
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