pub struct RunProgress {
pub steps_used: u32,
pub max_steps: u32,
}Expand description
How much of the run budget the planner has consumed so far.
Replaces the steps_used / max_steps fields of the legacy RuntimeCaps.
Helps the planner pace itself toward the terminal phase of the goal.
Fields§
§steps_used: u32Steps already consumed on this run (zero on the first call).
max_steps: u32Hard cap on total steps for this run.
Implementations§
Source§impl RunProgress
impl RunProgress
pub fn steps_remaining(&self) -> u32
Trait Implementations§
Source§impl Clone for RunProgress
impl Clone for RunProgress
Source§fn clone(&self) -> RunProgress
fn clone(&self) -> RunProgress
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 RunProgress
impl Debug for RunProgress
Source§impl Default for RunProgress
impl Default for RunProgress
Source§fn default() -> RunProgress
fn default() -> RunProgress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunProgress
impl<'de> Deserialize<'de> for RunProgress
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 RunProgress
impl RefUnwindSafe for RunProgress
impl Send for RunProgress
impl Sync for RunProgress
impl Unpin for RunProgress
impl UnsafeUnpin for RunProgress
impl UnwindSafe for RunProgress
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