pub struct PackageBaselineCache(/* private fields */);Expand description
The run-wide memo of the resolved package map.
Every analysis of one run resolves the same map against the same workspaces, so each surface keeps one memo per run: a process-wide value on the CLI, a field of the programmatic call context, and one value per project and run in the editor. The first resolution wins. A config error is kept too, so every analysis of the run fails the same way.
Implementations§
Source§impl PackageBaselineCache
impl PackageBaselineCache
Sourcepub fn is_resolved(&self) -> bool
pub fn is_resolved(&self) -> bool
Whether an analysis of the run already resolved the map.
Sourcepub fn request_outcome(&self) -> Option<RequestOutcome>
pub fn request_outcome(&self) -> Option<RequestOutcome>
The package-baselines request outcome of the run, once a run
resolved the map. None when no analysis read the map.
Trait Implementations§
Source§impl Debug for PackageBaselineCache
impl Debug for PackageBaselineCache
Auto Trait Implementations§
impl !Freeze for PackageBaselineCache
impl RefUnwindSafe for PackageBaselineCache
impl Send for PackageBaselineCache
impl Sync for PackageBaselineCache
impl Unpin for PackageBaselineCache
impl UnsafeUnpin for PackageBaselineCache
impl UnwindSafe for PackageBaselineCache
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> 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