pub fn run(root: &Path, port: u16, max_requests: usize) -> i32Expand description
Runs the bounded loopback static-server binary for one packaged artifact.
§Parameters
root: Input consumed bycrate::artifact_server::run.port: Input consumed bycrate::artifact_server::run.max_requests: Input consumed bycrate::artifact_server::run.
§Returns
Returns the computed value produced by crate::artifact_server::run.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::artifact_server::run.
§Examples
ⓘ
let _result = pharos_runtime_static::artifact_server::run(std::path::Path::new("."), "8080", todo!());§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.