mime_type

Function mime_type 

Source
pub fn mime_type<T: MimeDb>(db: &T, path: &Path) -> Result<Option<Mime>>
Expand description

Tries to identify the MIME type of a file from a given path.