Struct magic::Cookie [] [src]

pub struct Cookie {
    // some fields omitted
}

Methods

impl Cookie
[src]

fn file<P: AsRef<Path>>(&self, filename: P) -> Result<StringMagicError>

fn buffer(&self, buffer: &[u8]) -> Result<StringMagicError>

fn error(&self) -> Option<String>

fn set_flags(&self, flags: CookieFlags) -> bool

fn check<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<()MagicError>

fn compile<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<()MagicError>

fn list<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<()MagicError>

fn load<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<()MagicError>

fn open(flags: CookieFlags) -> Result<CookieMagicError>

Trait Implementations

impl Drop for Cookie
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more