pub struct ArchiveLimits { /* private fields */ }Expand description
Explicit input, entry-count, cumulative expansion, and per-member ratio caps. Defaults: 64 MiB input/expanded bytes, 4096 entries, expansion ratio 200:1. These limits do not read the environment or bound downstream model memory.
Implementations§
Source§impl ArchiveLimits
impl ArchiveLimits
Sourcepub const fn max_input_bytes(self) -> u64
pub const fn max_input_bytes(self) -> u64
Maximum compressed input length.
Sourcepub const fn max_entries(self) -> usize
pub const fn max_entries(self) -> usize
Maximum entries in one admitted archive.
Sourcepub const fn max_expanded_bytes(self) -> u64
pub const fn max_expanded_bytes(self) -> u64
Maximum sum of declared expanded lengths.
Trait Implementations§
Source§impl Clone for ArchiveLimits
impl Clone for ArchiveLimits
impl Copy for ArchiveLimits
Source§impl Debug for ArchiveLimits
impl Debug for ArchiveLimits
Source§impl Default for ArchiveLimits
impl Default for ArchiveLimits
impl Eq for ArchiveLimits
Source§impl PartialEq for ArchiveLimits
impl PartialEq for ArchiveLimits
impl StructuralPartialEq for ArchiveLimits
Auto Trait Implementations§
impl Freeze for ArchiveLimits
impl RefUnwindSafe for ArchiveLimits
impl Send for ArchiveLimits
impl Sync for ArchiveLimits
impl Unpin for ArchiveLimits
impl UnsafeUnpin for ArchiveLimits
impl UnwindSafe for ArchiveLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.