pub struct ActionResult {
pub key: CacheKey,
pub outputs: BTreeMap<String, ContentHash>,
pub output_bytes: u64,
pub compute_ms: u64,
pub deterministic: bool,
pub origin: Origin,
pub created_at: DateTime<Utc>,
pub last_accessed: DateTime<Utc>,
}Expand description
The record of one completed computation.
Fields§
§key: CacheKeyProvenance key: hash(config + state + input) (or the state-key
form for fit results).
outputs: BTreeMap<String, ContentHash>Output name → content hash. The runtime uses a single "output"
entry today; the map form leaves room for multi-output actions.
output_bytes: u64Total encoded size of the outputs in bytes.
compute_ms: u64Wall-clock cost of the computation, for cost-aware eviction (a tiny value that took days must outlive a huge one that took seconds).
deterministic: boolWhether the producing filter declared its forward deterministic.
origin: OriginProvenance of the computation (node, run, source).
created_at: DateTime<Utc>When the action first ran.
last_accessed: DateTime<Utc>Last time this record served a hit — recency for eviction.
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§fn clone(&self) -> ActionResult
fn clone(&self) -> ActionResult
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 ActionResult
impl Debug for ActionResult
Source§impl<'de> Deserialize<'de> for ActionResult
impl<'de> Deserialize<'de> for ActionResult
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
Auto Trait Implementations§
impl Freeze for ActionResult
impl RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl UnwindSafe for ActionResult
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