pub trait Handler {
// Provided methods
fn hook(&self) -> Arc<dyn Hook> { ... }
fn request(
&mut self,
method: &str,
params: Params<'_>,
cx: RequestContext<'_>,
) -> Result<Response> { ... }
fn notification(
&mut self,
method: &str,
params: Params<'_>,
cx: NotificationContext<'_>,
) -> Result<Response> { ... }
}