pub struct ChunkLimits {
pub max_read_chunk: usize,
pub max_text_accumulation: usize,
pub max_events_per_yield: usize,
pub max_stack_depth: usize,
}Expand description
Chunking limits for incremental processing.
Prevents single large allocations by breaking work into smaller chunks.
Fields§
§max_read_chunk: usizeMaximum bytes to process in a single read operation.
max_text_accumulation: usizeMaximum bytes for accumulated text before forcing a flush.
max_events_per_yield: usizeMaximum number of events to process before yielding control.
max_stack_depth: usizeMaximum depth for element stack.
Implementations§
Source§impl ChunkLimits
impl ChunkLimits
Trait Implementations§
Source§impl Clone for ChunkLimits
impl Clone for ChunkLimits
Source§fn clone(&self) -> ChunkLimits
fn clone(&self) -> ChunkLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkLimits
impl Debug for ChunkLimits
Source§impl Default for ChunkLimits
impl Default for ChunkLimits
Source§impl PartialEq for ChunkLimits
impl PartialEq for ChunkLimits
impl Copy for ChunkLimits
impl Eq for ChunkLimits
impl StructuralPartialEq for ChunkLimits
Auto Trait Implementations§
impl Freeze for ChunkLimits
impl RefUnwindSafe for ChunkLimits
impl Send for ChunkLimits
impl Sync for ChunkLimits
impl Unpin for ChunkLimits
impl UnsafeUnpin for ChunkLimits
impl UnwindSafe for ChunkLimits
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