pub struct PythonAnalyzer { /* private fields */ }Expand description
Python package analyzer
Implementations§
Source§impl PythonAnalyzer
impl PythonAnalyzer
Sourcepub fn with_database(
vulnerability_database: Box<dyn VulnerabilityDatabase>,
) -> Result<Self>
pub fn with_database( vulnerability_database: Box<dyn VulnerabilityDatabase>, ) -> Result<Self>
Create an analyzer using an application-provided vulnerability database.
Trait Implementations§
Source§impl PackageAnalyzer for PythonAnalyzer
impl PackageAnalyzer for PythonAnalyzer
Source§type Package = PythonPackage
type Package = PythonPackage
The specific package type this analyzer handles
Source§type Analysis = PythonAnalysisResult
type Analysis = PythonAnalysisResult
The analysis result type
Source§fn analyze<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Self::Analysis>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn analyze<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Self::Analysis>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Analyze a package from the given path. Read more
Source§fn can_analyze(&self, path: &Path) -> bool
fn can_analyze(&self, path: &Path) -> bool
Check if this analyzer can handle the given path
Source§fn supported_extensions(&self) -> Vec<&str>
fn supported_extensions(&self) -> Vec<&str>
Get supported file extensions
Auto Trait Implementations§
impl !RefUnwindSafe for PythonAnalyzer
impl !UnwindSafe for PythonAnalyzer
impl Forget for PythonAnalyzer
impl Freeze for PythonAnalyzer
impl Move for PythonAnalyzer
impl Send for PythonAnalyzer
impl Sync for PythonAnalyzer
impl Unpin for PythonAnalyzer
impl UnsafeUnpin for PythonAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more