pub struct ContentLimits {
pub max_item_bytes: usize,
pub max_total_bytes: usize,
pub max_entries: usize,
pub max_scan_entries: usize,
}Expand description
Hard limits for a store. They cover both payload and metadata: a document that names millions of tiny items must not be able to turn a bounded byte budget into an unbounded index.
Fields§
§max_item_bytes: usize§max_total_bytes: usizeLargest aggregate payload retained.
max_entries: usizeLargest number of retained items.
max_scan_entries: usizeLargest number of directory entries inspected while building an on-disk index; past it, writes are refused rather than scanning without bound.
Trait Implementations§
Source§impl Clone for ContentLimits
impl Clone for ContentLimits
impl Copy for ContentLimits
Source§impl Debug for ContentLimits
impl Debug for ContentLimits
Source§impl Default for ContentLimits
impl Default for ContentLimits
impl Eq for ContentLimits
Source§impl PartialEq for ContentLimits
impl PartialEq for ContentLimits
impl StructuralPartialEq for ContentLimits
Auto Trait Implementations§
impl Forget for ContentLimits
impl Freeze for ContentLimits
impl Move for ContentLimits
impl RefUnwindSafe for ContentLimits
impl Send for ContentLimits
impl Sync for ContentLimits
impl Unpin for ContentLimits
impl UnsafeUnpin for ContentLimits
impl UnwindSafe for ContentLimits
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