pub fn new_fixed(recognize: Rec, routes: IndexMap<Rec::Target, Svc>) -> Self {
        let capacity = routes.len();
        let (router, _) = Self::new(
            recognize,
            FixedMake(routes),
            capacity,
            Duration::from_secs(1),
        );

        router
    }
/// A router that is created with a fixed set of known routes.
///
/// `recognize` will only produce targets that exist in `routes`. We never
/// want to expire routes from the fixed set; the explicit drop of the
/// daemon task ensures eviction is never performed and `max_idle_age` is
/// ignored.
A router that is created with a fixed set of known routes.
`recognize` will only produce targets that exist in `routes`. We never
want to expire routes from the fixed set; the explicit drop of the
daemon task ensures eviction is never performed and `max_idle_age` is
ignored.
A router that is created with a fixed set of known routes . ` recognize ` will only produce targets that exist in ` routes ` . We never want to expire routes from the fixed set ; the explicit drop of the daemon task ensures eviction is never performed and ` max_idle_age ` is ignored .
pub fn new_fixed(recognize: Rec, routes: IndexMap<Rec::Target, Svc>) -> Self {
        let capacity = routes.len();
        let (router, _) = Self::new(
            recognize,
            FixedMake(routes),
            capacity,
            Duration::from_secs(1),
        );
        router
    }
pub fn new_fixed ( recognize : Rec , routes : IndexMap < Rec :: Target , Svc > ) -> Self { let capacity = routes . len ( ) ; let ( router , _ ) = Self :: new ( recognize , FixedMake ( routes ) , capacity , Duration :: from_secs ( 1 ) , ) ; router }
A router that is created with a fixed set of known routes.
A router that is created with a fixed set of known routes .
recognize
Rec
routes
IndexMap<Rec::Target, Svc>
recognize
Rec
routes
IndexMap<Rec::Target, Svc>