pub struct RustcInputPrediction {
pub version: u8,
pub inputs: Vec<String>,
pub environment: Vec<String>,
pub compiler_duration_ns: u64,
pub crate_name: String,
}Expand description
Normalized input names from the last successful execution of one modeled rustc invocation.
Fields§
§version: u8Prediction schema version.
inputs: Vec<String>Normalized input paths observed during the successful invocation.
environment: Vec<String>Names of environment variables read by the compilation.
compiler_duration_ns: u64Compiler wall time from the successful invocation that produced this prediction. Zero means no timing hint was recorded.
crate_name: StringCrate name associated with the timing hint.
Implementations§
Source§impl RustcInputPrediction
impl RustcInputPrediction
Sourcepub fn discover(
&self,
working_dir: &Path,
path_mappings: &[PathMapping],
digests: &dyn FileDigestCache,
) -> Result<DiscoveredInputs, BypassReason>
pub fn discover( &self, working_dir: &Path, path_mappings: &[PathMapping], digests: &dyn FileDigestCache, ) -> Result<DiscoveredInputs, BypassReason>
Rehash the predicted paths and read the current environment. The caller still recomputes the full action digest, so changed inputs are misses.
Trait Implementations§
Source§impl Clone for RustcInputPrediction
impl Clone for RustcInputPrediction
Source§fn clone(&self) -> RustcInputPrediction
fn clone(&self) -> RustcInputPrediction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustcInputPrediction
impl Debug for RustcInputPrediction
Source§impl<'de> Deserialize<'de> for RustcInputPrediction
impl<'de> Deserialize<'de> for RustcInputPrediction
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RustcInputPrediction
Source§impl PartialEq for RustcInputPrediction
impl PartialEq for RustcInputPrediction
Source§impl Serialize for RustcInputPrediction
impl Serialize for RustcInputPrediction
impl StructuralPartialEq for RustcInputPrediction
Auto Trait Implementations§
impl Freeze for RustcInputPrediction
impl RefUnwindSafe for RustcInputPrediction
impl Send for RustcInputPrediction
impl Sync for RustcInputPrediction
impl Unpin for RustcInputPrediction
impl UnsafeUnpin for RustcInputPrediction
impl UnwindSafe for RustcInputPrediction
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