pub fn run(root: &Path, port: u16, max_requests: usize) -> i32Expand description
Runs the extracted bounded loopback static server.
§Parameters
root: Artifact root to serve.port: TCP port to bind for the loopback server.max_requests: Maximum number of requests to serve before exiting.
§Returns
Returns the process exit code from the bounded static server loop.
§Examples
ⓘ
let _result = pharos_native::binaries::artifact_server::run(std::path::Path::new("."), "8080", todo!());§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.