pub struct StreamingOptions {
pub buffer_size: usize,
pub page_cache_size: usize,
pub max_content_stream_size: usize,
pub progressive_hints: bool,
pub memory_limit: usize,
}Expand description
Options for streaming operations
Fields§
§buffer_size: usizeBuffer size for reading
page_cache_size: usizeMaximum number of pages to keep in cache
max_content_stream_size: usizeMaximum size of a single content stream
progressive_hints: boolEnable progressive rendering hints
memory_limit: usizeMemory limit for buffers (bytes)
Implementations§
Source§impl StreamingOptions
impl StreamingOptions
Sourcepub fn minimal_memory() -> Self
pub fn minimal_memory() -> Self
Create options optimized for minimal memory usage
Sourcepub fn fast_processing() -> Self
pub fn fast_processing() -> Self
Create options optimized for speed
pub fn with_buffer_size(self, size: usize) -> Self
pub fn with_page_cache_size(self, size: usize) -> Self
pub fn with_memory_limit(self, limit: usize) -> Self
Trait Implementations§
Source§impl Clone for StreamingOptions
impl Clone for StreamingOptions
Source§fn clone(&self) -> StreamingOptions
fn clone(&self) -> StreamingOptions
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 StreamingOptions
impl Debug for StreamingOptions
Auto Trait Implementations§
impl Freeze for StreamingOptions
impl RefUnwindSafe for StreamingOptions
impl Send for StreamingOptions
impl Sync for StreamingOptions
impl Unpin for StreamingOptions
impl UnwindSafe for StreamingOptions
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