pub struct ComprehensiveSecurityAuditor { /* private fields */ }Expand description
Main security audit engine
Implementations§
Source§impl ComprehensiveSecurityAuditor
impl ComprehensiveSecurityAuditor
Sourcepub fn new(config: SecurityAuditConfig) -> Self
pub fn new(config: SecurityAuditConfig) -> Self
Create a new security auditor
Sourcepub fn audit_project<P: AsRef<Path>>(
&mut self,
projectpath: P,
) -> Result<SecurityAuditResult>
pub fn audit_project<P: AsRef<Path>>( &mut self, projectpath: P, ) -> Result<SecurityAuditResult>
Run comprehensive security audit
Sourcepub fn update_vulnerability_database(&mut self) -> Result<()>
pub fn update_vulnerability_database(&mut self) -> Result<()>
Update vulnerability database from external sources
Sourcepub fn scan_dependencies_with_rustsec(
&mut self,
projectpath: &Path,
) -> Result<DependencyScanResult>
pub fn scan_dependencies_with_rustsec( &mut self, projectpath: &Path, ) -> Result<DependencyScanResult>
Run automated dependency scanning with RustSec Advisory Database
Sourcepub fn get_audit_history(&self) -> &[SecurityAuditResult]
pub fn get_audit_history(&self) -> &[SecurityAuditResult]
Get audit history
Sourcepub fn generate_report(
&self,
auditresult: &SecurityAuditResult,
) -> Result<String>
pub fn generate_report( &self, auditresult: &SecurityAuditResult, ) -> Result<String>
Generate security report
Sourcepub fn run_scheduled_audit(
&mut self,
projectpath: &Path,
schedule: AuditSchedule,
) -> Result<()>
pub fn run_scheduled_audit( &mut self, projectpath: &Path, schedule: AuditSchedule, ) -> Result<()>
Run scheduled security audit
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComprehensiveSecurityAuditor
impl RefUnwindSafe for ComprehensiveSecurityAuditor
impl Send for ComprehensiveSecurityAuditor
impl Sync for ComprehensiveSecurityAuditor
impl Unpin for ComprehensiveSecurityAuditor
impl UnsafeUnpin for ComprehensiveSecurityAuditor
impl UnwindSafe for ComprehensiveSecurityAuditor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.