Trait ApiVersionFilter

Source
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§

Source

fn should_rewrite( &self, uri: &Uri, ) -> impl Future<Output = Result<bool, Self::Error>> + Send

Should a request with the given URI be rewritten.

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.

Implementors§