load_mime_db

Function load_mime_db 

Source
pub fn load_mime_db() -> Result<MimeDB, LoadError>
Expand description

Load the MIME info database.

This starts by loading the embedded database. If the xdg-runtime feature is enabled, it then loads the XDG shared mime database installed on the system, treating the embedded database as a directory of mime information that preceeds any system information.