#[non_exhaustive]pub struct Limits {
pub max_depth: usize,
pub max_resolution_depth: usize,
pub max_xref_sections: usize,
pub max_name_tree_depth: usize,
pub max_attachments: usize,
pub max_stream_size: usize,
pub max_total_decoded: usize,
pub max_xmp_nodes: u32,
}Expand description
Bounds on the work done for one file, against hostile input. Every bound that is
reached is an Error::LimitExceeded naming the field.
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.max_depth: usizeNesting of arrays and dictionaries in one object. Default 64.
max_resolution_depth: usizeChains of indirect references, and objects whose reading requires reading others
(a stream’s indirect /Length, an object stream). Default 32.
max_xref_sections: usizeCross-reference sections (incremental updates). Default 1024.
max_name_tree_depth: usizeDepth of the /EmbeddedFiles name tree. Default 32.
max_attachments: usizeEmbedded files (name tree entries, then distinct files). Default 10 000.
max_stream_size: usizeDecoded size of one stream, in bytes. Default 64 MiB.
max_total_decoded: usizeDecoded size of all streams together, in bytes. Default 256 MiB.
max_xmp_nodes: u32Nodes of the XMP metadata XML tree. Default 1 000 000.
Trait Implementations§
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze 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