Struct chilli::Module [] [src]

pub struct Module {
    pub name: String,
    pub root_path: String,
    pub static_folder: Option<String>,
    pub static_url_path: Option<String>,
    pub template_folder: Option<String>,
    // some fields omitted
}

Represents a module.

Fields

The name of the module.

The path where your module locates.

The folder with static files that should be served at static_url_path.

The url path for the static files on the web.

The folder that contains the templates that should be used for the module.

Methods

impl Module
[src]

[src]

[src]

The endpoint is automatically prefixed with the module's name.

[src]

Before request for a module. This is only executed before each request that is handled by a view function of that module.

[src]

Before request for the app that this module is registered on. This is executed before each request, even if outside of a module.

[src]

After request for a module. This is only executed after each request that is handled by a view function of that module.

[src]

After request for the app that this module is registered on. This is executed after each request, even if outside of a module.

[src]

Teardown request for a module. This is only executed when tearing down each request that is handled by a view function of that module.

[src]

Teardown request for the app that this module is registered on. This is executed when tearing down each request, even if outside of a module.

[src]

Registers a http error handler that becomes active for this module only.

[src]

Registers an user error handler that becomes active for this module only.

[src]

Registers a http error handler for all requests of the application.

[src]

Registers an user error handler for all requests of the application.

[src]

Register this module.

Trait Implementations

impl Debug for Module
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Module

impl Sync for Module