reserved_routes

Function reserved_routes 

Source
pub fn reserved_routes() -> &'static [&'static str]
Expand description

A path this process answers itself, so a program’s routes cannot be shadowed by one.

The list is derived from the match above rather than written twice — route_is_reserved is what the gate holds it to. It exists as a function because a program’s author needs to know which routes are not theirs, and “read the router” is not an answer.