Trait tower_lsp::jsonrpc::IntoResponse
source · pub trait IntoResponse:
Sealed
+ Send
+ 'static {
// Required methods
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.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl IntoResponse for ()
impl IntoResponse for ()
Support JSON-RPC notification methods.
source§impl<R: Serialize + Send + 'static> IntoResponse for Result<R, Error>
impl<R: Serialize + Send + 'static> IntoResponse for Result<R, Error>
Support JSON-RPC request methods.