pub struct CcInputPrediction {
pub version: u8,
pub inputs: Vec<String>,
pub environment: Vec<String>,
pub compiler_duration_ns: u64,
pub source_name: String,
}Expand description
Normalized input names from the last successful execution of one modeled compile.
Fields§
§version: u8Prediction schema version.
inputs: Vec<String>Normalized input paths, including include-manifest entries.
environment: Vec<String>Names of environment variables that entered the key.
compiler_duration_ns: u64Compiler wall time from the successful invocation that produced this prediction. Zero means no timing hint was recorded.
source_name: StringSource file name associated with the timing hint.
Implementations§
Source§impl CcInputPrediction
impl CcInputPrediction
Sourcepub fn discover(
&self,
working_dir: &Path,
path_mappings: &[PathMapping],
digests: &dyn FileDigestCache,
) -> Result<CcDiscoveredInputs, CcBypassReason>
pub fn discover( &self, working_dir: &Path, path_mappings: &[PathMapping], digests: &dyn FileDigestCache, ) -> Result<CcDiscoveredInputs, CcBypassReason>
Rehash the predicted paths and recompute include manifests. The caller still recomputes the full action digest, so changed inputs are misses.
Trait Implementations§
Source§impl Clone for CcInputPrediction
impl Clone for CcInputPrediction
Source§fn clone(&self) -> CcInputPrediction
fn clone(&self) -> CcInputPrediction
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 CcInputPrediction
impl Debug for CcInputPrediction
Source§impl<'de> Deserialize<'de> for CcInputPrediction
impl<'de> Deserialize<'de> for CcInputPrediction
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 CcInputPrediction
Source§impl PartialEq for CcInputPrediction
impl PartialEq for CcInputPrediction
Source§impl Serialize for CcInputPrediction
impl Serialize for CcInputPrediction
impl StructuralPartialEq for CcInputPrediction
Auto Trait Implementations§
impl Freeze for CcInputPrediction
impl RefUnwindSafe for CcInputPrediction
impl Send for CcInputPrediction
impl Sync for CcInputPrediction
impl Unpin for CcInputPrediction
impl UnsafeUnpin for CcInputPrediction
impl UnwindSafe for CcInputPrediction
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