[−][src]Struct http_fs::config::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) -> String[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 thread_pool_builder(builder: &mut Builder) -> &mut Builder[src]
Describes how to configure thread pool. Read more
Auto Trait Implementations
impl Send for DefaultConfig
impl Sync for DefaultConfig
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,