pub struct WorkBudget {
pub max_cells: u64,
pub max_emitter_evaluations: u64,
pub max_host_bytes: u64,
pub max_result_bytes: u64,
pub max_certificate_stencil_work: u64,
}Expand description
Explicit upper bounds for every preflight work dimension.
Fields§
§max_cells: u64Maximum output cells.
max_emitter_evaluations: u64Maximum source Green-function evaluations.
max_host_bytes: u64Maximum host bytes.
max_result_bytes: u64Maximum result bytes.
max_certificate_stencil_work: u64Maximum certificate stencil evaluations.
Implementations§
Source§impl WorkBudget
impl WorkBudget
Sourcepub fn admit(self, estimate: &WorkEstimate) -> Result<(), InterferenceError>
pub fn admit(self, estimate: &WorkEstimate) -> Result<(), InterferenceError>
Admits an estimate or names the first estimate and limit exceeded.
Checks follow the field order, making diagnostics deterministic.
Trait Implementations§
Source§impl Clone for WorkBudget
impl Clone for WorkBudget
Source§fn clone(&self) -> WorkBudget
fn clone(&self) -> WorkBudget
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 moreimpl Copy for WorkBudget
Source§impl Debug for WorkBudget
impl Debug for WorkBudget
Source§impl Default for WorkBudget
impl Default for WorkBudget
impl Eq for WorkBudget
Source§impl PartialEq for WorkBudget
impl PartialEq for WorkBudget
impl StructuralPartialEq for WorkBudget
Auto Trait Implementations§
impl Freeze for WorkBudget
impl RefUnwindSafe for WorkBudget
impl Send for WorkBudget
impl Sync for WorkBudget
impl Unpin for WorkBudget
impl UnsafeUnpin for WorkBudget
impl UnwindSafe for WorkBudget
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