pub trait RequestWriter {
fn write_request<'life0, 'async_trait, R: Request<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
&'life0 mut self,
params: Option<R::Params>
) -> Pin<Box<dyn Future<Output = Result<Response<R::Result>, Error>> + Send + 'async_trait>>
where
R: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait;
fn write_notification<'life0, 'async_trait, N: Notification<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
&'life0 mut self,
params: Option<N::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
N: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait;
fn cancel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}