pub struct ResolvedRun { /* private fields */ }Expand description
Every decision of one run, with its cause. The fields are private and the
type has no Default, no Clone and no &mut self method, so a run
stays as the resolver made it.
Implementations§
Source§impl ResolvedRun
impl ResolvedRun
Sourcepub fn view(&self) -> ResolvedRunView
pub fn view(&self) -> ResolvedRunView
The view of every decision of the run, with its source. The environment block names the variables and never holds a value.
Source§impl ResolvedRun
impl ResolvedRun
Sourcepub const fn command(&self) -> CommandKind
pub const fn command(&self) -> CommandKind
The command of the run.
Sourcepub const fn config_file(&self) -> &Sourced<Option<PathBuf>>
pub const fn config_file(&self) -> &Sourced<Option<PathBuf>>
The config file. None when the run uses the default config.
Sourcepub const fn config(&self) -> &FallowConfig
pub const fn config(&self) -> &FallowConfig
The validated config, before the production mode is flattened.
Sourcepub fn analysis(&self, analysis: PlannedAnalysis) -> AnalysisSlot<'_>
pub fn analysis(&self, analysis: PlannedAnalysis) -> AnalysisSlot<'_>
The analysis, when it runs, or the reason why the run skips it.
Sourcepub const fn production(&self, analysis: PlannedAnalysis) -> &Sourced<bool>
pub const fn production(&self, analysis: PlannedAnalysis) -> &Sourced<bool>
The production mode of the analysis.
Sourcepub fn production_modes(&self) -> ProductionModes
pub fn production_modes(&self) -> ProductionModes
The production mode of each analysis.
Sourcepub const fn settings(&self) -> &RunSettings
pub const fn settings(&self) -> &RunSettings
The settings of the run.
Sourcepub fn type_aware(&self) -> Result<&TypeAwareSettings, ResolveError>
pub fn type_aware(&self) -> Result<&TypeAwareSettings, ResolveError>
The type-aware settings of the run.
§Errors
Returns ResolveError::Input with InputField::Env when
FALLOW_TYPE_AWARE or FALLOW_TYPE_AWARE_REQUIRE has a value that the
run cannot use. The run itself resolves, so a command that reads no
type-aware setting does not fail.
Sourcepub const fn env(&self) -> &EnvSnapshot
pub const fn env(&self) -> &EnvSnapshot
The environment snapshot of the run. It holds only the variables that the run reads on its surface and command.
Sourcepub fn env_ignored(&self) -> &[EnvVar]
pub fn env_ignored(&self) -> &[EnvVar]
The set variables that the run ignores on its surface and command.
Sourcepub const fn fallback_error(&self) -> Option<&ResolveError>
pub const fn fallback_error(&self) -> Option<&ResolveError>
The error of the discovered config when the run uses the default config because that config failed to load, to validate or to give workspace metadata.
Sourcepub fn notices(&self) -> &[WorkspaceDiagnostic]
pub fn notices(&self) -> &[WorkspaceDiagnostic]
The notices of the run: the decisions of the resolver that a surface shows as one note each, such as an environment variable whose value the run ignores. Each session of the run also carries them in its workspace diagnostics.
Sourcepub fn sources_changed(&self) -> bool
pub fn sources_changed(&self) -> bool
Whether a config input changed since the load or during the load: the
bytes of the config file or of a file of its local extends chain, or
a plugin file, a rule pack or an autoDiscover directory that config
resolution read. A long-lived caller then resolves the run again.
Sourcepub fn plugin_readiness(&self) -> Vec<ConfiguredPluginDiagnostic>
pub fn plugin_readiness(&self) -> Vec<ConfiguredPluginDiagnostic>
The resources that the plugins config field names and that do not
resolve.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ResolvedRun
impl Freeze for ResolvedRun
impl Move for ResolvedRun
impl RefUnwindSafe for ResolvedRun
impl Send for ResolvedRun
impl Sync for ResolvedRun
impl Unpin for ResolvedRun
impl UnsafeUnpin for ResolvedRun
impl UnwindSafe for ResolvedRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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