pub trait CacheProvider<ReqBody, ResBody>: Service<Request<ReqBody>, Response = CacheGetResponse<ReqBody, Self::Key>> + Service<(Self::Key, Response<ResBody>), Response = Response<Self::TResBody>> {
type Key;
type TResBody;
}Expand description
Typical type args for use in axum 0.6:
ⓘ
ReqBody = hyper::body::Body
ResBody = axum::body::BoxBodyRequired Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.