pub struct Budget {
pub max_steps: u32,
pub max_node_visits: u32,
pub max_edge_visits: u32,
pub max_outputs: u32,
pub max_child_runs: u32,
pub deadline_ms: Option<u64>,
pub on_exhausted: BudgetExhausted,
}Expand description
Bounded execution budget for one topology run.
Fields§
§max_steps: u32Maximum scheduler steps.
max_node_visits: u32Maximum visits to any node.
max_edge_visits: u32Maximum traversals of any edge.
max_outputs: u32Maximum emitted outputs.
max_child_runs: u32Maximum nested child topology runs.
deadline_ms: Option<u64>Optional wall-clock deadline in milliseconds.
on_exhausted: BudgetExhaustedExhaustion policy.
Trait Implementations§
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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