pub struct SearchLimits {
pub actions: u32,
pub model_turns: u32,
pub tool_calls: u32,
pub mutations: u32,
pub verifier_runs: u32,
pub tokens: u64,
pub elapsed_secs: u64,
pub result_bytes: u64,
pub workspace_files: u64,
pub workspace_bytes: u64,
}Expand description
The forest’s finite limits (Definition 5). One set per forest.
Fields§
§actions: u32§model_turns: u32§tool_calls: u32§mutations: u32§verifier_runs: u32§tokens: u64§elapsed_secs: u64§result_bytes: u64§workspace_files: u64Cumulative eager-copy file reservations across every fork.
workspace_bytes: u64Cumulative eager-copy byte reservations across every fork.
Implementations§
Source§impl SearchLimits
impl SearchLimits
Sourcepub fn release_default() -> Self
pub fn release_default() -> Self
A finite release-default limit set (system 20’s starting posture).
Trait Implementations§
Source§impl Clone for SearchLimits
impl Clone for SearchLimits
Source§fn clone(&self) -> SearchLimits
fn clone(&self) -> SearchLimits
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 SearchLimits
impl Debug for SearchLimits
Source§impl<'de> Deserialize<'de> for SearchLimits
impl<'de> Deserialize<'de> for SearchLimits
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
Source§impl PartialEq for SearchLimits
impl PartialEq for SearchLimits
Source§fn eq(&self, other: &SearchLimits) -> bool
fn eq(&self, other: &SearchLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchLimits
impl Serialize for SearchLimits
impl Eq for SearchLimits
impl StructuralPartialEq for SearchLimits
Auto Trait Implementations§
impl Freeze for SearchLimits
impl RefUnwindSafe for SearchLimits
impl Send for SearchLimits
impl Sync for SearchLimits
impl Unpin for SearchLimits
impl UnsafeUnpin for SearchLimits
impl UnwindSafe for SearchLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.