[][src]Struct lsp_async_stub::impls::ServerBuilder

pub struct ServerBuilder<W: Clone + Send + Sync + 'static> { /* fields omitted */ }

Implementations

impl<W: Clone + Send + Sync + 'static> ServerBuilder<W>[src]

pub fn on_notification<N, F>(
    self,
    handler: fn(_: Context<W>, _: Params<N::Params>) -> F
) -> Self where
    N: Notification + 'static,
    N::Params: Send,
    F: Future<Output = ()> + Send + 'static, 
[src]

pub fn on_request<R, F>(
    self,
    handler: fn(_: Context<W>, _: Params<R::Params>) -> F
) -> Self where
    R: Request + 'static,
    R::Params: Send,
    R::Result: Send,
    F: Future<Output = Result<R::Result, Error>> + Send + 'static, 
[src]

pub fn build(self) -> Server<W>[src]

Auto Trait Implementations

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.