Struct mime_detective::MimeDetective[][src]

pub struct MimeDetective { /* fields omitted */ }

To detect the MimeType/ContentType using the magic library

Methods

impl MimeDetective
[src]

Initialize detective with magic database from /usr/share/misc/magic.mgc.

Requires system to have libmagic installed

Detect Mime of a filepath

Detect Mime of a file

Detect Mime of a buffer

Auto Trait Implementations

impl !Send for MimeDetective

impl !Sync for MimeDetective