pub struct Limits {
pub max_input_bytes: u64,
pub max_output_bytes: u64,
pub max_record_len: u32,
pub max_record_count: u32,
pub max_object_count: u32,
pub max_graph_ops: u32,
pub max_repeat_count: u64,
pub max_channel_symbols: u64,
pub max_model_count: u32,
pub max_channel_count: u32,
pub max_entropy_model_bytes: u32,
pub max_pdf_spans: u32,
}Expand description
Hard upper bounds applied while parsing and materializing a descriptor.
Fields§
§max_input_bytes: u64Maximum accepted source/descriptor input size.
max_output_bytes: u64Maximum reconstructed output size for a single materialization.
max_record_len: u32Maximum length of a single record payload.
max_record_count: u32Maximum number of records in a container.
max_object_count: u32Maximum number of distinct byte objects (OBJECT records).
max_graph_ops: u32Maximum number of DRA instructions in a reconstruction graph.
max_repeat_count: u64Maximum repeat count for a single REPEAT_LAST instruction.
max_channel_symbols: u64Maximum number of symbols in a single entropy channel.
max_model_count: u32Maximum number of distinct entropy models (MODEL records).
max_channel_count: u32Maximum number of entropy channels (ENTROPY_CHANNEL records).
max_entropy_model_bytes: u32Maximum encoded size of a single entropy model payload.
max_pdf_spans: u32Maximum number of lexical spans produced for a PDF input.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
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