pub struct StreamingConfig {
pub chunk_size: usize,
pub enable_compression: bool,
pub enable_checksums: bool,
}Expand description
Configuration for streaming operations
Fields§
§chunk_size: usizeSize of each chunk in bytes (default: 4096)
enable_compression: boolEnable compression for payloads
enable_checksums: boolEnable checksum validation for chunks
Implementations§
Source§impl StreamingConfig
impl StreamingConfig
Sourcepub fn with_chunk_size(self, size: usize) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
Sets the chunk size
Sourcepub fn with_compression(self, enabled: bool) -> Self
pub fn with_compression(self, enabled: bool) -> Self
Enables or disables compression
Sourcepub fn with_checksums(self, enabled: bool) -> Self
pub fn with_checksums(self, enabled: bool) -> Self
Enables or disables checksums
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
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 StreamingConfig
impl Debug for StreamingConfig
Source§impl Default for StreamingConfig
impl Default for StreamingConfig
Source§impl PartialEq for StreamingConfig
impl PartialEq for StreamingConfig
impl StructuralPartialEq for StreamingConfig
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnwindSafe for StreamingConfig
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