pub struct StreamConfig {
pub buffer_size: usize,
pub max_event_buffer: usize,
pub incremental: bool,
pub limits: Limits,
pub chunk_size: usize,
}Expand description
Configuration for enhanced streaming parser
Fields§
§buffer_size: usizeSize of the read buffer in bytes
max_event_buffer: usizeMaximum number of events to buffer
incremental: boolEnable incremental parsing (parse partial documents)
limits: LimitsResource limits
chunk_size: usizeChunk size for reading (bytes)
Implementations§
Source§impl StreamConfig
impl StreamConfig
Sourcepub fn large_file() -> Self
pub fn large_file() -> Self
Create config for large files
Sourcepub fn low_memory() -> Self
pub fn low_memory() -> Self
Create config for memory-constrained environments
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl Debug for StreamConfig
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
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