[][src]Trait nvim_rs::rpc::handler::Handler

pub trait Handler: Sync + Send {
    type Writer: AsyncWrite + Send + Unpin + 'static;
    fn handle_request<'life0, 'async_trait>(
        &'life0 self,
        _name: String,
        _args: Vec<Value>,
        _req: Requester<Self::Writer>
    ) -> Pin<Box<dyn Future<Output = Result<Value, Value>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
fn handle_notify<'life0, 'async_trait>(
        &'life0 self,
        _name: String,
        _args: Vec<Value>,
        _req: Requester<Self::Writer>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Associated Types

type Writer: AsyncWrite + Send + Unpin + 'static

Loading content...

Provided methods

fn handle_request<'life0, 'async_trait>(
    &'life0 self,
    _name: String,
    _args: Vec<Value>,
    _req: Requester<Self::Writer>
) -> Pin<Box<dyn Future<Output = Result<Value, Value>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn handle_notify<'life0, 'async_trait>(
    &'life0 self,
    _name: String,
    _args: Vec<Value>,
    _req: Requester<Self::Writer>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<Q> Handler for DefaultHandler<Q> where
    Q: AsyncWrite + Send + Sync + Unpin + 'static, 
[src]

type Writer = Q

Loading content...