pub struct IndexResourceLimits {
pub max_files: usize,
pub max_symbols_per_file: usize,
pub max_total_symbols: usize,
pub max_ast_cache_bytes: usize,
pub max_ast_cache_items: usize,
pub max_scan_duration_ms: u64,
}Expand description
Configurable resource limits for workspace index.
Fields§
§max_files: usizeMaximum files to index (default: 10,000).
max_symbols_per_file: usizeMaximum symbols per file (default: 5,000).
max_total_symbols: usizeMaximum total symbols (default: 500,000).
max_ast_cache_bytes: usizeMaximum AST cache size in bytes (default: 256MB).
max_ast_cache_items: usizeMaximum AST cache items (default: 100).
max_scan_duration_ms: u64Maximum workspace scan duration in milliseconds (default: 30,000ms = 30s).
Trait Implementations§
Source§impl Clone for IndexResourceLimits
impl Clone for IndexResourceLimits
Source§fn clone(&self) -> IndexResourceLimits
fn clone(&self) -> IndexResourceLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 IndexResourceLimits
impl Debug for IndexResourceLimits
Source§impl Default for IndexResourceLimits
impl Default for IndexResourceLimits
Source§fn default() -> IndexResourceLimits
fn default() -> IndexResourceLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexResourceLimits
impl RefUnwindSafe for IndexResourceLimits
impl Send for IndexResourceLimits
impl Sync for IndexResourceLimits
impl Unpin for IndexResourceLimits
impl UnsafeUnpin for IndexResourceLimits
impl UnwindSafe for IndexResourceLimits
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