run

Function run 

Source
pub fn run<F>(handler: F)
where F: Fn(Request) + Send + Sync + 'static,
Expand description

Runs as a FastCGI process with the given handler.

Available under Unix only. If you are using Windows, use run_tcp instead.

Examples found in repository?
examples/hello.rs (lines 6-9)
5fn main() {
6    fastcgi::run(|mut req| {
7        write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
8        .unwrap_or(());
9    });
10}