Trait tower_lsp::jsonrpc::IntoResponse
source · [−]pub trait IntoResponse: Sealed + Send + 'static {
fn into_response(self, id: Option<Id>) -> Option<Response>;
fn is_notification() -> bool;
}
Expand description
A trait implemented by all JSON-RPC response types.
Required Methods
sourcefn is_notification() -> bool
fn is_notification() -> bool
Returns true
if this is a notification response type.
Implementations on Foreign Types
sourceimpl IntoResponse for ()
impl IntoResponse for ()
Support JSON-RPC notification methods.
fn into_response(self, id: Option<Id>) -> Option<Response>
fn is_notification() -> bool
sourceimpl<R: Serialize + Send + 'static> IntoResponse for Result<R, Error>
impl<R: Serialize + Send + 'static> IntoResponse for Result<R, Error>
Support JSON-RPC request methods.