openlimits-messaging 0.1.0

The messaging system of OpenLimits.
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;

#[async_trait]
pub trait Requester {
    type Request;
    type Response;
    type Error;
    async fn request(&mut self, request: &Self::Request) -> Result<Self::Response, Self::Error>;
}