Struct susanoo::Susanoo [] [src]

pub struct Susanoo { /* fields omitted */ }

Root instance of Web application.

Methods

impl Susanoo
[src]

Add a route to the application.

Add a middleware to the application.

If you want to apply middelewares to certain route, use Route::with_middleware.

Set listen address of the application.

The default address is "0.0.0.0:4000".

Set the number of threads running simulateneous event loops (Unix only).

The default value is 1.

Start the server with given configuration.

This method will block the current thread until the server is shut down.

Trait Implementations

impl Default for Susanoo
[src]

Returns the "default value" for a type. Read more