lsp_core::prelude

Trait Client

Source
pub trait Client: Clone + ClientSync {
    // Required methods
    fn log_message<'life0, 'async_trait, M>(
        &'life0 self,
        ty: MessageType,
        msg: M,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where M: 'async_trait + Display + Sync + Send + 'static,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_diagnostics<'life0, 'async_trait>(
        &'life0 self,
        uri: Url,
        diags: Vec<Diagnostic>,
        version: Option<i32>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn log_message<'life0, 'async_trait, M>( &'life0 self, ty: MessageType, msg: M, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where M: 'async_trait + Display + Sync + Send + 'static, Self: 'async_trait, 'life0: 'async_trait,

Source

fn publish_diagnostics<'life0, 'async_trait>( &'life0 self, uri: Url, diags: Vec<Diagnostic>, version: Option<i32>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§