Skip to main content

lookup_route_map

Function lookup_route_map 

Source
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

§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"));