pub struct IndexReadOptions {
pub max_checkpoints: usize,
pub max_window_bytes: u64,
pub max_window_payload_bytes: usize,
}Expand description
Allocation limits applied while parsing an untrusted index file.
The defaults permit more than four million checkpoints while preventing a
small hostile header from requesting an effectively unbounded allocation.
Applications opening exceptionally large trusted indexes can raise these
limits explicitly with the read_*_with_options methods.
Fields§
§max_checkpoints: usizeMaximum number of checkpoint records.
max_window_bytes: u64Maximum sum of stored predecessor-window payload bytes.
max_window_payload_bytes: usizeMaximum bytes in one stored predecessor-window payload.
Trait Implementations§
Source§impl Clone for IndexReadOptions
impl Clone for IndexReadOptions
Source§fn clone(&self) -> IndexReadOptions
fn clone(&self) -> IndexReadOptions
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 IndexReadOptions
Source§impl Debug for IndexReadOptions
impl Debug for IndexReadOptions
Source§impl Default for IndexReadOptions
impl Default for IndexReadOptions
impl Eq for IndexReadOptions
Source§impl PartialEq for IndexReadOptions
impl PartialEq for IndexReadOptions
impl StructuralPartialEq for IndexReadOptions
Auto Trait Implementations§
impl Freeze for IndexReadOptions
impl RefUnwindSafe for IndexReadOptions
impl Send for IndexReadOptions
impl Sync for IndexReadOptions
impl Unpin for IndexReadOptions
impl UnsafeUnpin for IndexReadOptions
impl UnwindSafe for IndexReadOptions
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