pub fn resolve_direct_asset(
root: &Path,
path: &str,
) -> Result<Option<(PathBuf, &'static str)>, ()>Expand description
Resolves a direct /static/ or /media/ request under an artifact root.
§Parameters
root: Input consumed bycrate::artifact_server::resolve_direct_asset.path: Input consumed bycrate::artifact_server::resolve_direct_asset.) -> Result<Option<(PathBuf, 'static str)>, (: Input consumed bycrate::artifact_server::resolve_direct_asset.
§Returns
Returns the successful value produced by crate::artifact_server::resolve_direct_asset or an error when the operation fails.
§Errors
Returns an error value when crate::artifact_server::resolve_direct_asset cannot complete successfully.
§Examples
ⓘ
let _result = pharos_runtime_static::artifact_server::resolve_direct_asset(std::path::Path::new("."), std::path::Path::new("fixture.json"), todo!());§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.