pub fn serve_static_root(root: &Path, port: u16, max_requests: usize) -> i32Expand description
Serves a static root using the bounded direct listener.
§Parameters
root: Input consumed bycrate::binaries::serve_static_root.port: Input consumed bycrate::binaries::serve_static_root.max_requests: Input consumed bycrate::binaries::serve_static_root.
§Returns
Returns the computed value produced by crate::binaries::serve_static_root.
§Examples
ⓘ
let _result = pharos_native::binaries::serve_static_root(std::path::Path::new("."), "8080", todo!());§Related
crate::binariesfor adjacent helpers that share the same runtime surface.