pub struct Runnable<'run> { /* private fields */ }Expand description
An analysis that runs. Only ResolvedRun::analysis makes one, so a
skipped analysis has no config and no session.
Implementations§
Source§impl<'run> Runnable<'run>
impl<'run> Runnable<'run>
Sourcepub const fn analysis(&self) -> PlannedAnalysis
pub const fn analysis(&self) -> PlannedAnalysis
The analysis.
Sourcepub const fn production(&self) -> &'run Sourced<bool>
pub const fn production(&self) -> &'run Sourced<bool>
The production mode of the analysis.
Sourcepub const fn run(&self) -> &'run ResolvedRun
pub const fn run(&self) -> &'run ResolvedRun
The run of the analysis.
Sourcepub fn config(&self) -> &'run ResolvedConfig
pub fn config(&self) -> &'run ResolvedConfig
The resolved config of the production mode of the analysis.
Sourcepub fn workspaces(&self) -> &'run [WorkspaceInfo]
pub fn workspaces(&self) -> &'run [WorkspaceInfo]
The workspaces under the root.
Sourcepub fn workspace_diagnostics(&self) -> &'run [WorkspaceDiagnostic]
pub fn workspace_diagnostics(&self) -> &'run [WorkspaceDiagnostic]
The diagnostics of the workspace discovery.
Sourcepub fn open_session(&self) -> AnalysisSession
pub fn open_session(&self) -> AnalysisSession
A session of the analysis.
Sourcepub fn open_session_adjusted(
&self,
adjust: impl FnOnce(&mut ResolvedConfig),
) -> Result<AnalysisSession, EngineError>
pub fn open_session_adjusted( &self, adjust: impl FnOnce(&mut ResolvedConfig), ) -> Result<AnalysisSession, EngineError>
A session of the analysis, with the rule settings of one command.
§Errors
Returns an error when adjust changes a decided field: the root, the
production mode, the ignore or workspace patterns, the max file size,
the cache directory or size, no_cache, the thread count or
include_entry_exports.
Trait Implementations§
Auto Trait Implementations§
impl<'run> Forget for Runnable<'run>
impl<'run> Freeze for Runnable<'run>
impl<'run> Move for Runnable<'run>
impl<'run> RefUnwindSafe for Runnable<'run>
impl<'run> Send for Runnable<'run>
impl<'run> Sync for Runnable<'run>
impl<'run> Unpin for Runnable<'run>
impl<'run> UnsafeUnpin for Runnable<'run>
impl<'run> UnwindSafe for Runnable<'run>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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