Skip to main content

run

Function run 

Source
pub fn run(root: &Path, port: u16, max_requests: usize) -> i32
Expand description

Runs the bounded loopback static-server binary for one packaged artifact.

§Parameters

§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!());