Trait malwaredb_types::SpecimenFile

source ·
pub trait SpecimenFile {
    const MAGIC: &'static [&'static [u8]];

    // Required method
    fn type_name(&self) -> &'static str;
}
Expand description

Common functions for all file types parsed by MalwareDB

Required Associated Constants§

source

const MAGIC: &'static [&'static [u8]]

Magic number, the bytes at the beginning of the file, which identify the file format Some file types have more than one possible magic number

Required Methods§

source

fn type_name(&self) -> &'static str

Common name for a specific file type

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> SpecimenFile for Office95<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for PDF<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for Rtf<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for Elf<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for FatMacho<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for Macho<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for EXE<'a>

source§

const MAGIC: &'static [&'static [u8]] = _

source§

impl<'a> SpecimenFile for Pef<'a>

source§

const MAGIC: &'static [&'static [u8]] = _