[][src]Struct nvim_rs::rpc::handler::DefaultHandler

pub struct DefaultHandler<Q> where
    Q: AsyncWrite + Send + Sync + Unpin + 'static, 
{ /* fields omitted */ }

The default handler defaults to doing nothing with a notification, and returning a generic error for a request. It can be used if a plugin only wants to send requests to neovim and get responses, but not handle any notifications or requests.

Methods

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

pub fn new() -> DefaultHandler<Q>[src]

Trait Implementations

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

type Writer = Q

The type where we write our responses to requests. Handling of incoming requests/notifications is done on the io loop, which passes the parsed messages to the handler. Read more

Auto Trait Implementations

impl<Q> RefUnwindSafe for DefaultHandler<Q> where
    Q: RefUnwindSafe

impl<Q> Send for DefaultHandler<Q>

impl<Q> Sync for DefaultHandler<Q>

impl<Q> Unpin for DefaultHandler<Q>

impl<Q> UnwindSafe for DefaultHandler<Q> where
    Q: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.