[][src]Struct http_fs::config::DefaultConfig

pub struct DefaultConfig;

Default configuration

Trait Implementations

impl FileServeConfig for DefaultConfig[src]

fn max_buffer_size() -> u64[src]

Returns maximum size for buffer to read file. Read more

fn content_disposition_map(typ: Name) -> DispositionType[src]

Describes mapping for mime type to content disposition header Read more

fn is_use_etag(_path: &Path) -> bool[src]

Specifies whether ETag should be used for caching Read more

fn is_use_last_modifier(_path: &Path) -> bool[src]

Specifies whether Last-Modified should be used for caching Read more

impl DirectoryListingConfig for DefaultConfig[src]

fn create_body(base: &Path, path: &Path, dir: ReadDir) -> Bytes[src]

Describes how to create HTML text for Directory listing Read more

impl StaticFileConfig for DefaultConfig[src]

type FileService = Self

File serve configuration

type DirService = Self

Directory serve configuration

fn is_method_allowed(method: &Method) -> bool[src]

Returns whether specified method is allowed for use. By default allows HEAD and GET Read more

fn serve_dir(&self) -> &Path[src]

Returns directory from where to serve files. Read more

fn index_file(&self, _path: &Path) -> Option<&Path>[src]

Returns name of index file to show. Read more

fn handle_directory(&self, _path: &Path) -> bool[src]

Returns whether directory should be listed on access Read more

fn handle_not_found(
    &self,
    _path: &Path,
    _out_headers: &mut HeaderMap
) -> (StatusCode, Bytes)
[src]

Handles entry that hasn't been found. Read more

fn thread_pool_builder() -> ThreadPool[src]

Describes how to get instance of threadpool::ThreadPool Read more

impl Clone for DefaultConfig[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T