pub struct ResourceLimits {
pub max_state_size_bytes: Option<usize>,
}Expand description
Resource limits for graph execution
Controls concurrent access to shared resources like LLM calls and tool executions, and enforces state size limits to prevent unbounded memory growth.
§Examples
ⓘ
use juncture_core::config::ResourceLimits;
let limits = ResourceLimits::new()
.with_max_state_size_bytes(10 * 1024 * 1024); // 10 MBFields§
§max_state_size_bytes: Option<usize>Maximum state size in bytes after serialization (None = unlimited)
Implementations§
Source§impl ResourceLimits
impl ResourceLimits
Sourcepub const fn with_max_state_size_bytes(self, max: usize) -> Self
pub const fn with_max_state_size_bytes(self, max: usize) -> Self
Set maximum state size in bytes
Trait Implementations§
Source§impl Clone for ResourceLimits
impl Clone for ResourceLimits
Source§fn clone(&self) -> ResourceLimits
fn clone(&self) -> ResourceLimits
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 ResourceLimits
impl Debug for ResourceLimits
Source§impl Default for ResourceLimits
impl Default for ResourceLimits
Source§fn default() -> ResourceLimits
fn default() -> ResourceLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResourceLimits
impl RefUnwindSafe for ResourceLimits
impl Send for ResourceLimits
impl Sync for ResourceLimits
impl Unpin for ResourceLimits
impl UnsafeUnpin for ResourceLimits
impl UnwindSafe for ResourceLimits
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