pub trait SendRequest {
type Response;
type Error;
// Required method
fn send<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
A trait for abstracting sending requests between APIs.