pub struct HttpServer { /* private fields */ }

Implementations§

listen will take 1 parameter for the port that the server will be monitoring at, aka 127.0.0.1:port. This function will block until the server is shut down.

Examples
extern crate rusty_express as express;
use express::prelude::*;

let mut server = HttpServer::new();
server.def_router(router);
server.listen(8080);

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.