pub struct WorktreeLimits {Show 18 fields
pub max_files: usize,
pub max_edits_per_file: usize,
pub max_source_bytes_per_file: usize,
pub max_output_bytes_per_file: usize,
pub max_total_source_bytes: usize,
pub max_total_output_bytes: usize,
pub max_total_artifact_bytes: usize,
pub max_journal_bytes: usize,
pub max_undo_receipts: usize,
pub max_total_undo_bytes: usize,
pub max_operation_bytes: usize,
pub max_extension_bytes: usize,
pub max_extension_nodes: usize,
pub max_extension_depth: usize,
pub max_evidence_entries: usize,
pub max_evidence_text_bytes: usize,
pub max_code_bytes: usize,
pub max_workers: usize,
}Expand description
Hard resource ceilings for one worktree transaction.
Fields§
§max_files: usize§max_edits_per_file: usize§max_source_bytes_per_file: usize§max_output_bytes_per_file: usize§max_total_source_bytes: usize§max_total_output_bytes: usize§max_total_artifact_bytes: usize§max_journal_bytes: usize§max_undo_receipts: usize§max_total_undo_bytes: usize§max_operation_bytes: usize§max_extension_bytes: usize§max_extension_nodes: usize§max_extension_depth: usize§max_evidence_entries: usize§max_evidence_text_bytes: usize§max_code_bytes: usize§max_workers: usizeImplementations§
Source§impl WorktreeLimits
impl WorktreeLimits
Sourcepub fn validate(&self) -> Result<(), WorktreeError>
pub fn validate(&self) -> Result<(), WorktreeError>
Validates that every limit is nonzero and internally consistent.
Trait Implementations§
Source§impl Clone for WorktreeLimits
impl Clone for WorktreeLimits
Source§fn clone(&self) -> WorktreeLimits
fn clone(&self) -> WorktreeLimits
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 moreimpl Copy for WorktreeLimits
Source§impl Debug for WorktreeLimits
impl Debug for WorktreeLimits
Source§impl Default for WorktreeLimits
impl Default for WorktreeLimits
impl Eq for WorktreeLimits
Source§impl PartialEq for WorktreeLimits
impl PartialEq for WorktreeLimits
impl StructuralPartialEq for WorktreeLimits
Auto Trait Implementations§
impl Freeze for WorktreeLimits
impl RefUnwindSafe for WorktreeLimits
impl Send for WorktreeLimits
impl Sync for WorktreeLimits
impl Unpin for WorktreeLimits
impl UnsafeUnpin for WorktreeLimits
impl UnwindSafe for WorktreeLimits
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