LspServerManager

Trait LspServerManager 

Source
pub trait LspServerManager {
    // Required methods
    fn start_server<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn stop_server<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn restart_server<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ServerState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server_capabilities<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ServerCapabilities>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server_id: &'life1 str,
        method: String,
        params: Option<Value>,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server_notify<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server_id: &'life1 str,
        method: String,
        params: Option<Value>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

LSP server manager trait for extensibility.

Required Methods§

Source

fn start_server<'life0, 'life1, 'async_trait>( &'life0 mut self, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Start a server.

Source

fn stop_server<'life0, 'life1, 'async_trait>( &'life0 mut self, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Stop a server.

Source

fn restart_server<'life0, 'life1, 'async_trait>( &'life0 mut self, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restart a server.

Source

fn server_state<'life0, 'life1, 'async_trait>( &'life0 self, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ServerState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get server state.

Source

fn server_capabilities<'life0, 'life1, 'async_trait>( &'life0 self, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ServerCapabilities>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get server capabilities.

Source

fn server_request<'life0, 'life1, 'async_trait>( &'life0 self, server_id: &'life1 str, method: String, params: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send request to server.

Source

fn server_notify<'life0, 'life1, 'async_trait>( &'life0 self, server_id: &'life1 str, method: String, params: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send notification to server.

Implementors§