pub trait PassthroughPredicate: Clone {
// Required methods
fn should_passthrough_req<T>(&mut self, req: &Request<T>) -> bool;
fn should_passthrough_resp<T>(&mut self, resp: &Response<T>) -> bool;
}Expand description
Controls when requests and responses should ignore the caching layer
Required Methods§
Sourcefn should_passthrough_req<T>(&mut self, req: &Request<T>) -> bool
fn should_passthrough_req<T>(&mut self, req: &Request<T>) -> bool
Returns true if the given request should ignore the 2 EtagCache services and only be processed by the inner service
Sourcefn should_passthrough_resp<T>(&mut self, resp: &Response<T>) -> bool
fn should_passthrough_resp<T>(&mut self, resp: &Response<T>) -> bool
Returns true if the given inner service response should ignore the second EtagCache service and not have its ETag calculated and cached
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.