pub trait ApiVersionFilter:
Clone
+ Send
+ 'static
+ Send {
type Error: Error;
// Required method
fn should_rewrite(
&self,
uri: &Uri,
) -> impl Future<Output = Result<bool, Self::Error>> + Send;
}
Expand description
Filter to determine which requests are rewritten.
Required Associated Types§
Required Methods§
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.