pub enum NotFoundStrategy {
Plain,
File(PathBuf),
}Expand description
What to serve when a requested file isn’t found.
Variants§
Plain
Return a text/plain; charset=utf-8 404. The default.
File(PathBuf)
Serve <root>/<file> as the 404 body (typically 404.html).
Falls back to NotFoundStrategy::Plain if the file can’t be
read. Livereload script is injected when the file is HTML.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotFoundStrategy
impl RefUnwindSafe for NotFoundStrategy
impl Send for NotFoundStrategy
impl Sync for NotFoundStrategy
impl Unpin for NotFoundStrategy
impl UnsafeUnpin for NotFoundStrategy
impl UnwindSafe for NotFoundStrategy
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