Trait uri_resources::WeightedResource
source · pub trait WeightedResource {
// Required methods
fn weight(&self) -> f32;
fn with_weight(&mut self, weight: f32) -> &Self;
}Expand description
Resource can be ‘weighted’. This allows use
in uri_routes, after digestion to sort
paths in the final required. order.
Required Methods§
sourcefn with_weight(&mut self, weight: f32) -> &Self
fn with_weight(&mut self, weight: f32) -> &Self
Determines the ordering weight to be used by pre-digestion sorting.
Object Safety§
This trait is not object safe.