pub struct StreamingChapterOptions {
pub render_prep: RenderPrepOptions,
pub max_items: usize,
pub max_entry_bytes: usize,
pub chunk_limits: Option<ChunkLimits>,
pub load_stylesheets: bool,
}Expand description
Options for streaming chapter event processing without full materialization.
This provides true streaming from ZIP with configurable chunk sizes and limits.
Fields§
§render_prep: RenderPrepOptionsRender-prep options for styling.
max_items: usizeHard cap on emitted items.
max_entry_bytes: usizeMaximum chapter entry size in bytes.
chunk_limits: Option<ChunkLimits>Chunk size limits for incremental processing.
load_stylesheets: boolWhether to extract stylesheets (requires additional reads).
Implementations§
Source§impl StreamingChapterOptions
impl StreamingChapterOptions
Sourcepub fn with_chunk_limits(self, limits: ChunkLimits) -> Self
pub fn with_chunk_limits(self, limits: ChunkLimits) -> Self
Set explicit chunk limits.
Sourcepub fn with_stylesheets(self, load: bool) -> Self
pub fn with_stylesheets(self, load: bool) -> Self
Enable/disable stylesheet loading.
Trait Implementations§
Source§impl Clone for StreamingChapterOptions
impl Clone for StreamingChapterOptions
Source§fn clone(&self) -> StreamingChapterOptions
fn clone(&self) -> StreamingChapterOptions
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 StreamingChapterOptions
impl Debug for StreamingChapterOptions
Auto Trait Implementations§
impl Freeze for StreamingChapterOptions
impl RefUnwindSafe for StreamingChapterOptions
impl Send for StreamingChapterOptions
impl Sync for StreamingChapterOptions
impl Unpin for StreamingChapterOptions
impl UnsafeUnpin for StreamingChapterOptions
impl UnwindSafe for StreamingChapterOptions
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