Struct mime_detective::MimeDetective [] [src]

pub struct MimeDetective { /* fields omitted */ }

To detect the MimeType/ContentType using the magic library

Methods

impl MimeDetective
[src]

[src]

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

Requires system to have libmagic installed

[src]

Detect Mime of a filepath

[src]

Detect Mime of a file

[src]

Detect Mime of a buffer

Trait Implementations

Auto Trait Implementations

impl !Send for MimeDetective

impl !Sync for MimeDetective