Skip to main content

serve_static_root

Function serve_static_root 

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

Serves a static root using the bounded direct listener.

§Parameters

§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!());
  • crate::binaries for adjacent helpers that share the same runtime surface.