Struct gluon_language_server::rpc::ServerCommand [−][src]
pub struct ServerCommand<T, P>(pub T, _);
Methods
impl<T, P> ServerCommand<T, P>
[src]
impl<T, P> ServerCommand<T, P>
pub fn method(command: T) -> ServerCommand<T, P> where
T: LanguageServerCommand<P>,
<T::Future as IntoFuture>::Future: Send + 'static,
P: for<'de> Deserialize<'de> + 'static,
[src]
pub fn method(command: T) -> ServerCommand<T, P> where
T: LanguageServerCommand<P>,
<T::Future as IntoFuture>::Future: Send + 'static,
P: for<'de> Deserialize<'de> + 'static,
pub fn notification(command: T) -> ServerCommand<T, P> where
T: LanguageServerNotification<P>,
P: for<'de> Deserialize<'de> + 'static,
[src]
pub fn notification(command: T) -> ServerCommand<T, P> where
T: LanguageServerNotification<P>,
P: for<'de> Deserialize<'de> + 'static,
Trait Implementations
impl<P, T> RpcMethodSimple for ServerCommand<T, P> where
T: LanguageServerCommand<P>,
<T::Future as IntoFuture>::Future: Send + 'static,
P: for<'de> Deserialize<'de> + 'static,
[src]
impl<P, T> RpcMethodSimple for ServerCommand<T, P> where
T: LanguageServerCommand<P>,
<T::Future as IntoFuture>::Future: Send + 'static,
P: for<'de> Deserialize<'de> + 'static,
type Out = BoxFuture<Value, Error>
Output future
fn call(&self, param: Params) -> BoxFuture<Value, Error>
[src]
fn call(&self, param: Params) -> BoxFuture<Value, Error>
Call method
impl<T, P> RpcNotificationSimple for ServerCommand<T, P> where
T: LanguageServerNotification<P>,
P: for<'de> Deserialize<'de> + 'static,
[src]
impl<T, P> RpcNotificationSimple for ServerCommand<T, P> where
T: LanguageServerNotification<P>,
P: for<'de> Deserialize<'de> + 'static,
Auto Trait Implementations
impl<T, P> Send for ServerCommand<T, P> where
T: Send,
impl<T, P> Send for ServerCommand<T, P> where
T: Send,
impl<T, P> Sync for ServerCommand<T, P> where
T: Sync,
impl<T, P> Sync for ServerCommand<T, P> where
T: Sync,