pub struct Limits {
pub max_read_lines: usize,
pub max_read_bytes: usize,
pub max_grep_matches: usize,
pub max_glob_results: usize,
pub max_grep_line_length: usize,
pub max_edit_bytes: usize,
}Expand description
Flue’s resource caps, applied uniformly across sandbox backends.
Values mirror packages/runtime/src/agent.ts constants.
Fields§
§max_read_lines: usizeMax lines returned by read.
max_read_bytes: usizeMax bytes returned by read.
max_grep_matches: usizeMax grep matches.
max_glob_results: usizeMax glob results.
max_grep_line_length: usizeMax line length before truncation.
max_edit_bytes: usizeMax file size (bytes) for a non-truncating edit read. Files larger
than this are rejected with crate::error::RuntimeError::FileTooLarge rather than
edited (which would risk data loss from a truncated read).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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