pub enum DirtyReason {
Show 26 variants
RustcChanged,
FeaturesChanged {
old: String,
new: String,
},
DeclaredFeaturesChanged {
old: String,
new: String,
},
TargetConfigurationChanged,
PathToSourceChanged,
ProfileConfigurationChanged,
RustflagsChanged {
old: Vec<String>,
new: Vec<String>,
},
MetadataChanged,
ConfigSettingsChanged,
CompileKindChanged,
LocalLengthsChanged,
PrecalculatedComponentsChanged {
old: String,
new: String,
},
ChecksumUseChanged {
old: bool,
},
DepInfoOutputChanged {
old: PathBuf,
new: PathBuf,
},
RerunIfChangedOutputFileChanged {
old: PathBuf,
new: PathBuf,
},
RerunIfChangedOutputPathsChanged {
old: Vec<PathBuf>,
new: Vec<PathBuf>,
},
EnvVarsChanged {
old: String,
new: String,
},
EnvVarChanged {
name: String,
old_value: Option<String>,
new_value: Option<String>,
},
LocalFingerprintTypeChanged {
old: &'static str,
new: &'static str,
},
NumberOfDependenciesChanged {
old: usize,
new: usize,
},
UnitDependencyNameChanged {
old: InternedString,
new: InternedString,
},
UnitDependencyInfoChanged {
old_name: InternedString,
old_fingerprint: u64,
new_name: InternedString,
new_fingerprint: u64,
},
FsStatusOutdated(FsStatus),
NothingObvious,
Forced,
FreshBuild,
}
Expand description
Tells a better story of why a build is considered “dirty” that leads
to a recompile. Usually constructed via Fingerprint::compare
.
Variants§
RustcChanged
FeaturesChanged
DeclaredFeaturesChanged
TargetConfigurationChanged
PathToSourceChanged
ProfileConfigurationChanged
RustflagsChanged
MetadataChanged
ConfigSettingsChanged
CompileKindChanged
LocalLengthsChanged
PrecalculatedComponentsChanged
ChecksumUseChanged
DepInfoOutputChanged
RerunIfChangedOutputFileChanged
RerunIfChangedOutputPathsChanged
EnvVarsChanged
EnvVarChanged
LocalFingerprintTypeChanged
NumberOfDependenciesChanged
UnitDependencyNameChanged
UnitDependencyInfoChanged
FsStatusOutdated(FsStatus)
NothingObvious
Forced
FreshBuild
First time to build something.
Implementations§
Source§impl DirtyReason
impl DirtyReason
Sourcepub fn is_fresh_build(&self) -> bool
pub fn is_fresh_build(&self) -> bool
Whether a build is dirty because it is a fresh build being kicked off.
fn after(old_time: FileTime, new_time: FileTime, what: &'static str) -> After
pub fn present_to( &self, s: &mut Shell, unit: &Unit, root: &Path, ) -> CargoResult<()>
Trait Implementations§
Source§impl Clone for DirtyReason
impl Clone for DirtyReason
Source§fn clone(&self) -> DirtyReason
fn clone(&self) -> DirtyReason
Returns a copy of the value. Read more
1.0.0 · 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 DirtyReason
impl RefUnwindSafe for DirtyReason
impl Send for DirtyReason
impl Sync for DirtyReason
impl Unpin for DirtyReason
impl UnwindSafe for DirtyReason
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes
Size for each variant:
RustcChanged
: 0 bytesFeaturesChanged
: 56 bytesDeclaredFeaturesChanged
: 56 bytesTargetConfigurationChanged
: 0 bytesPathToSourceChanged
: 0 bytesProfileConfigurationChanged
: 0 bytesRustflagsChanged
: 56 bytesMetadataChanged
: 0 bytesConfigSettingsChanged
: 0 bytesCompileKindChanged
: 0 bytesLocalLengthsChanged
: 0 bytesPrecalculatedComponentsChanged
: 56 bytesChecksumUseChanged
: 9 bytesDepInfoOutputChanged
: 56 bytesRerunIfChangedOutputFileChanged
: 56 bytesRerunIfChangedOutputPathsChanged
: 56 bytesEnvVarsChanged
: 56 bytesEnvVarChanged
: 80 bytesLocalFingerprintTypeChanged
: 40 bytesNumberOfDependenciesChanged
: 24 bytesUnitDependencyNameChanged
: 40 bytesUnitDependencyInfoChanged
: 56 bytesFsStatusOutdated
: 96 bytesNothingObvious
: 0 bytesForced
: 0 bytesFreshBuild
: 0 bytes