[][src]Enum tower_lsp::Incoming

pub enum Incoming {
    Request(MethodCall),
    Notification(Notification),
    Response(Output),
    Invalid(String),
}

An incoming JSON-RPC message.

Variants

Request(MethodCall)

Request sent from the client to the server.

This incoming message will produce a response.

Notification(Notification)

Notification sent from the client to the server.

This incoming message will not produce a response.

Response(Output)

Response sent from the client to the server.

This incoming message will not produce a response.

Invalid(String)

An unrecognized incoming message.

This incoming message will produce a response.

Trait Implementations

impl Clone for Incoming[src]

impl Debug for Incoming[src]

impl<'de> Deserialize<'de> for Incoming[src]

impl Display for Incoming[src]

impl From<String> for Incoming[src]

impl FromStr for Incoming[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Incoming> for Incoming[src]

impl Serialize for Incoming[src]

impl Service<Incoming> for LspService[src]

type Response = Option<String>

Responses given by the service.

type Error = ExitedError

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>

The future response value.

impl StructuralPartialEq for Incoming[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.