Scanner

Trait Scanner 

Source
pub trait Scanner: SecurityModule {
    // Required method
    fn scan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        target: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = FynxResult<ScanResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Scanner interface for security scanning modules

Required Methods§

Source

fn scan<'life0, 'life1, 'async_trait>( &'life0 self, target: &'life1 str, ) -> Pin<Box<dyn Future<Output = FynxResult<ScanResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Scan a target

§Arguments
  • target - Target to scan (IP, domain, file path, etc.)
§Errors

Returns an error if scanning fails

Implementors§