pub struct StaticFileHandler { /* private fields */ }Expand description
Serves a directory: files, index.html for directories, ranges, conditional
requests and streaming for large files (see crate::files).
Dotfiles (.env, .git/, …) are never served, and requests that try to
leave the directory (.., absolute paths, symlinks pointing outside) get 404.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticFileHandler
impl RefUnwindSafe for StaticFileHandler
impl Send for StaticFileHandler
impl Sync for StaticFileHandler
impl Unpin for StaticFileHandler
impl UnsafeUnpin for StaticFileHandler
impl UnwindSafe for StaticFileHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more