Struct arc_reactor::contrib::StaticFileServer[][src]

pub struct StaticFileServer {
    pub root: &'static str,
    pub public: PathBuf,
}

A static File Server implemented as a Middleware

Fields

the root url for all your files. e.g static, assets request urls that begin with the supplied value for root would be matched.

Path to folder to serve your static files from.

Methods

impl StaticFileServer
[src]

Creates a StaticFileServer with the given root and pathbuf.

Trait Implementations

impl Clone for StaticFileServer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StaticFileServer
[src]

Formats the value using the given formatter. Read more

impl MiddleWare<Request> for StaticFileServer
[src]

Auto Trait Implementations