FormatScanner

Struct FormatScanner 

Source
pub struct FormatScanner { /* private fields */ }
Expand description

Format scanner.

Implementations§

Source§

impl FormatScanner

Source

pub fn new() -> Self

Creates a new format scanner.

Source

pub fn add_apm_signatures(&mut self)

Adds Apple Partition Map (APM) signatures.

Source

pub fn add_ext_signatures(&mut self)

Adds Extended File System (ext) signatures.

Source

pub fn add_ewf_signatures(&mut self)

Adds Expert Witness Compression Format (EWF) signatures.

Source

pub fn add_gpt_signatures(&mut self)

Adds GUID Partition Table (GPT) signatures.

Source

pub fn add_mbr_signatures(&mut self)

Adds Master Boot Record (MBR) signatures.

Source

pub fn add_ntfs_signatures(&mut self)

Adds New Technologies File System (NTFS) signatures.

Source

pub fn add_qcow_signatures(&mut self)

Adds QEMU Copy-On-Write (QCOW) signatures.

Source

pub fn add_sparseimage_signatures(&mut self)

Adds Mac OS sparse image (.sparseimage) signatures.

Source

pub fn add_udif_signatures(&mut self)

Adds Universal Disk Image Format (UDIF) (signatures.

Source

pub fn add_vhd_signatures(&mut self)

Adds Virtual Hard Disk (VHD) signatures.

Source

pub fn add_vhdx_signatures(&mut self)

Adds Virtual Hard Disk version 2 (VHDX) signatures.

Source

pub fn build(&mut self) -> Result<(), BuildError>

Builds the format signature scanner.

Source

pub fn scan_data_stream( &self, data_stream: &DataStreamReference, ) -> Result<HashSet<FormatIdentifier>, ErrorTrace>

Scans a data stream for format signatures.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.