pub trait MiddleWare: Sync + Send {
// Required methods
fn request<E: Endpoint>(
&self,
endpoint: &E,
req: &mut Request<Vec<u8>>,
) -> Result<(), ClientError>;
fn response<E: Endpoint>(
&self,
endpoint: &E,
resp: &mut Response<Vec<u8>>,
) -> Result<(), ClientError>;
}
Expand description
Required Methods§
Object Safety§
This trait is not object safe.