ExifScanModule

Struct ExifScanModule 

Source
pub struct ExifScanModule;

Trait Implementations§

Source§

impl ScanModule for ExifScanModule

Source§

fn scan(&self, scan_object: &ScanObject) -> Result<Vec<Finding>, ArmorlibError>

Scan the given scan_object and return either a vector of Findings or, in case of an error, an ArmorlibError.
Source§

fn info(&self) -> (&'static str, &'static str)

Returns a tuple containing the name and description of the scan module.
Source§

fn required_preprocessors(&self) -> Vec<&'static str>

Return a Vec of &'static strs indicating the preprocessors that the scan module relies on for running. These names should match the name provided by the processor in its name() function.
Source§

fn subscribed_filetypes(&self) -> Option<Vec<&'static str>>

Returns an Option<Vec<&'static str>> of the filetypes that the scan module is subscribed to. If a scan module subscribes to a filetype, it will only be run if the data is detected to be of any of the subscribed filetypes. If a scan module’s subscribed_filetypes() function returns None (default), it will be run for every filetype. Read more
Source§

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

Returns a &'static str of the name of the scan module. This information is drawn from the information provided by info() in its default implementation.
Source§

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

Returns a &'static str of the description of the scan module. This information is drawn from the information provided by info() in its default implementation.

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.