pub enum Incoming {
Request(ServerRequest),
Response(Response),
}
Expand description
An incoming JSON-RPC message.
Variants§
Request(ServerRequest)
Request intended for the language server.
Response(Response)
Response to a server-to-client request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Incoming
impl<'de> Deserialize<'de> for Incoming
Source§fn 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
Source§impl Service<Incoming> for LspService
impl Service<Incoming> for LspService
Source§type Error = ExitedError
type Error = ExitedError
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<LspService as Service<Incoming>>::Response, <LspService as Service<Incoming>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<LspService as Service<Incoming>>::Response, <LspService as Service<Incoming>>::Error>> + Send>>
The future response value.
impl StructuralPartialEq for Incoming
Auto Trait Implementations§
impl Freeze for Incoming
impl RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl UnwindSafe for Incoming
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more