#[non_exhaustive]pub struct CollectionLimits {
pub tree: SourceTreeLimits,
pub archive: ArchiveLimits,
pub probe_bytes: u64,
pub inspection_bytes: u64,
pub max_zip_layers: u32,
pub work_bytes: u64,
}Expand description
Explicit host limits. Parser/model limits remain independently active.
The collection types are #[non_exhaustive] so that 0.12.x can add
fields and variants. Start from the default and set fields:
let mut limits = powerio::CollectionLimits::default();
limits.work_bytes = 1 << 20;ⓘ
let limits = powerio::CollectionLimits {
work_bytes: 1 << 20,
..powerio::CollectionLimits::default()
};Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tree: SourceTreeLimits§archive: ArchiveLimits§probe_bytes: u64Maximum bytes examined per classification probe.
inspection_bytes: u64Maximum bytes examined by all classification probes together.
max_zip_layers: u32Maximum ZIP decoding layers, including native CGMES/SINCAL archives.
work_bytes: u64Input and decompression bytes one operation may touch, charged conservatively. Every operation starts from zero.
Trait Implementations§
Source§impl Clone for CollectionLimits
impl Clone for CollectionLimits
impl Copy for CollectionLimits
Source§impl Debug for CollectionLimits
impl Debug for CollectionLimits
Auto Trait Implementations§
impl Freeze for CollectionLimits
impl RefUnwindSafe for CollectionLimits
impl Send for CollectionLimits
impl Sync for CollectionLimits
impl Unpin for CollectionLimits
impl UnsafeUnpin for CollectionLimits
impl UnwindSafe for CollectionLimits
Blanket Implementations§
impl<T> Allocation for T
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