pub struct Request { /* private fields */ }
Expand description
A JSON-RPC request or notification.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Service<Request> for Client
impl Service<Request> for Client
type Error = ExitedError
type Error = ExitedError
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<Client as Service<Request>>::Response, <Client as Service<Request>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<Client as Service<Request>>::Response, <Client as Service<Request>>::Error>> + Send + 'static, Global>>
The future response value.
sourceimpl<S: LanguageServer> Service<Request> for LspService<S>
impl<S: LanguageServer> Service<Request> for LspService<S>
type Error = ExitedError
type Error = ExitedError
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<LspService<S> as Service<Request>>::Response, <LspService<S> as Service<Request>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<LspService<S> as Service<Request>>::Response, <LspService<S> as Service<Request>>::Error>> + Send + 'static, Global>>
The future response value.
impl StructuralPartialEq for Request
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more