pub enum ScanOutcome {
Skipped(SkipReason),
Clean,
Vulnerable(DependencyVulnerabilities),
}Expand description
Outcome of scanning one dependency.
The three variants are mutually exclusive and collectively exhaustive for
every dependency passed to crate::osv::OsvClient::scan — see architecture.md §6 for
why this must never collapse back to Option<DependencyVulnerabilities>.
Variants§
Skipped(SkipReason)
Never queried, or the query could not be resolved — say nothing about it.
Clean
Queried; OSV reported no advisories.
Vulnerable(DependencyVulnerabilities)
Queried; OSV reported one or more advisories.
Trait Implementations§
Source§impl Clone for ScanOutcome
impl Clone for ScanOutcome
Source§fn clone(&self) -> ScanOutcome
fn clone(&self) -> ScanOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanOutcome
impl RefUnwindSafe for ScanOutcome
impl Send for ScanOutcome
impl Sync for ScanOutcome
impl Unpin for ScanOutcome
impl UnsafeUnpin for ScanOutcome
impl UnwindSafe for ScanOutcome
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