pub trait VariantsProcessor:
Send
+ Sync
+ 'static {
// Required method
fn process<'r>(&self, request: &'r Request<'_>, variants: &mut dyn Variants);
}Expand description
A trait for processing variants in the context of a web request.
Types implementing this trait can modify or inspect the provided variants
based on the incoming request. Implementors must be thread-safe and have
a static lifetime.
§Arguments
request- A reference to the current HTTP request.variants- A mutable reference to a type implementing theVariantstrait, allowing the processor to modify or inspect the available variants.