pub struct Limits {
pub max_index_bytes: u64,
pub max_file_bytes: u64,
}Expand description
Size limits for the content index.
Fields§
§max_index_bytes: u64Stop indexing once the database reaches this size.
max_file_bytes: u64Skip files larger than this.
Beyond a couple of megabytes a text file is almost always generated — a log, a dump, a minified bundle — and indexing it costs far more than it returns.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move 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