[][src]Trait lsp_async_stub::impls::RequestWriter

pub trait RequestWriter {
#[must_use]    pub fn write_request<'life0, 'async_trait, R: Request<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
        &'life0 mut self,
        params: Option<R::Params>
    ) -> Pin<Box<dyn Future<Output = Result<Response<R::Result>, Error>> + Send + 'async_trait>>
    where
        R: 'async_trait,
        P: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn write_notification<'life0, 'async_trait, N: Notification<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
        &'life0 mut self,
        params: Option<N::Params>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        N: 'async_trait,
        P: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn cancel<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]pub fn write_request<'life0, 'async_trait, R: Request<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
    &'life0 mut self,
    params: Option<R::Params>
) -> Pin<Box<dyn Future<Output = Result<Response<R::Result>, Error>> + Send + 'async_trait>> where
    R: 'async_trait,
    P: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn write_notification<'life0, 'async_trait, N: Notification<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
    &'life0 mut self,
    params: Option<N::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    N: 'async_trait,
    P: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn cancel<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl<W: Clone + Send + Sync> RequestWriter for Context<W>[src]

Loading content...