pub fn lookup_route_map(
root: &Path,
path: &str,
) -> Result<Option<(PathBuf, &'static str)>, ()>Expand description
Looks up one GET route in the artifact route map.
§Parameters
root: Input consumed bycrate::artifact_server::lookup_route_map.path: Input consumed bycrate::artifact_server::lookup_route_map.
§Returns
Returns the successful value produced by crate::artifact_server::lookup_route_map or an error when the operation fails.
§Errors
Returns an error value when crate::artifact_server::lookup_route_map cannot complete successfully.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::artifact_server::lookup_route_map.
§Examples
ⓘ
let _result = pharos_runtime_static::artifact_server::lookup_route_map(std::path::Path::new("."), std::path::Path::new("fixture.json"));§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.