pub struct CheckContext {
pub cache: Arc<HttpCache>,
pub osv: Arc<OsvClient>,
pub deps_dev: Arc<DepsDevClient>,
pub lockfile_cache: Arc<LockFileCache>,
pub policy: PolicyConfig,
}Expand description
Runtime handles and resolved policy shared across every manifest a check run classifies.
Built once in main.rs (or by an integration test) and passed by reference to
check_manifest for every discovered manifest.
Fields§
§cache: Arc<HttpCache>Shared HTTP cache for registry requests.
osv: Arc<OsvClient>Shared OSV.dev vulnerability scan client.
deps_dev: Arc<DepsDevClient>Shared deps.dev client for GOSSIP cooldown findings (spec 074) — always constructed,
regardless of policy.gossip.enabled; see deps-cli::main::RuntimeHandles::deps_dev’s
doc for why. crate::analyze::analyze_manifest passes it through as
Option<&Arc<DepsDevClient>>, None when GOSSIP is disabled.
lockfile_cache: Arc<LockFileCache>Shared lock-file cache, keyed by resolved lockfile path.
policy: PolicyConfigThe resolved policy configuration for this run.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CheckContext
impl !UnwindSafe for CheckContext
impl Freeze for CheckContext
impl Send for CheckContext
impl Sync for CheckContext
impl Unpin for CheckContext
impl UnsafeUnpin for CheckContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more