pub struct CaptureUsage {
pub captures: u64,
pub retained_bytes: u64,
pub host_bytes: u64,
pub encoded_bytes: u64,
}Expand description
Upper bound on one step or the whole run. Retention includes capture-owned source storage/dependencies and logical temporary arrays. Host bytes include every transferred scalar and host result buffer, including intermediate reductions. Encoded bytes cover UTF-8 JSON capture records, including metadata and escaping.
Fields§
§captures: u64Number of successfully reserved value transformations, excluding diagnostic-only records.
retained_bytes: u64Conservative logical source/backing and temporary native storage reservation.
host_bytes: u64Conservative host-buffer and materialization reservation, including intermediate scalars.
encoded_bytes: u64Conservative UTF-8 JSON capture-record reservation.
Implementations§
Source§impl CaptureUsage
impl CaptureUsage
Sourcepub fn checked_mul(self, count: u64) -> Result<Self, CaptureError>
pub fn checked_mul(self, count: u64) -> Result<Self, CaptureError>
Multiplies a conservative reservation by a bounded occurrence count.
Sourcepub fn checked_add(self, other: Self) -> Result<Self, CaptureError>
pub fn checked_add(self, other: Self) -> Result<Self, CaptureError>
Adds reservations with checked arithmetic in every dimension.
Sourcepub fn exceeded(self, limit: Self) -> Option<CaptureBudget>
pub fn exceeded(self, limit: Self) -> Option<CaptureBudget>
First accounting dimension exceeding its limit, in stable diagnostic order.
Trait Implementations§
Source§impl Clone for CaptureUsage
impl Clone for CaptureUsage
Source§fn clone(&self) -> CaptureUsage
fn clone(&self) -> CaptureUsage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more