fn modify(self, res: &mut Response) {
        File::open(self)
            .expect(&format!("No such file: {}", self.display()))
            .modify(res);

        let mime_str = MIME_TYPES.mime_for_path(self);
        let _ = mime_str.parse().map(|mime: Mime| res.set_mut(mime));
    }
/// Set the body to the contents of the File at this path.
///
/// ## Panics
///
/// Panics if there is no file at the passed-in Path.
Set the body to the contents of the File at this path.
Set the body to the contents of the File at this path .
fn modify(self, res: &mut Response) {
        File::open(self)
            .expect(&format!("No such file: {}", self.display()))
            .modify(res);
        let mime_str = MIME_TYPES.mime_for_path(self);
        let _ = mime_str.parse().map(|mime: Mime| res.set_mut(mime));
    }
fn modify ( self , res : & mut Response ) { File :: open ( self ) . expect ( & format ! ( " " self display ( ) ) ) . modify ( res ) ; let mime_str = MIME_TYPES . mime_for_path ( self ) ; let _ = mime_str . parse ( ) . map ( | mime : Mime | res . set_mut ( mime ) ) ; }
Set the body to the contents of the File at this path.
Set the body to the contents of the File at this path .
self
res
&mut Response
panics
Panics if there is no file at the passed-in Path.
Panics if there is no file at the passed - in Path .