Struct http_serve::dir::FsDir[][src]

pub struct FsDir { /* fields omitted */ }
This is supported on crate feature dir only.
Expand description

A base directory for local filesystem traversal.

Implementations

Opens a path within this base directory.

If using auto_gzip (the default) and req_hdrs indicate the client supports gzip, will look for a .gz-suffixed version of this path first and note that in the returned Node. .gz-suffixed directories are ignored.

Validates that path has no .. segments or interior NULs. Currently doesn’t check for symlinks, however. That may eventually be configurable via the builder.

Trait Implementations

Executes the destructor for this type. Read more

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

Performs the conversion.

Performs the conversion.

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.