pub struct SharedRouteIndex { /* private fields */ }Expand description
Lazily builds and caches a RouteIndex from a shared ContextRegistry
once deferred route closures have run.
Implementations§
pub fn new( registry: Arc<Mutex<ContextRegistry>>, primary_url: impl Into<String>, ) -> Self
pub fn index(&self) -> Result<Arc<RouteIndex>, ContextError>
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more