pub struct StreamingWriterConfigBuilder { /* private fields */ }
Expand description
Builder pattern for streaming writer configuration
Implementations§
Source§impl StreamingWriterConfigBuilder
impl StreamingWriterConfigBuilder
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size
Sourcepub fn with_compression(self, level: u32) -> Self
pub fn with_compression(self, level: u32) -> Self
Enable compression with specified level
Sourcepub fn pretty_print(self) -> Self
pub fn pretty_print(self) -> Self
Enable pretty printing
Sourcepub fn max_memory_before_flush(self, size: usize) -> Self
pub fn max_memory_before_flush(self, size: usize) -> Self
Set maximum memory before flush
Sourcepub fn array_chunk_size(self, size: usize) -> Self
pub fn array_chunk_size(self, size: usize) -> Self
Set array chunk size
Sourcepub fn non_blocking(self, enabled: bool) -> Self
pub fn non_blocking(self, enabled: bool) -> Self
Enable or disable non-blocking writes
Sourcepub fn build(self) -> StreamingWriterConfig
pub fn build(self) -> StreamingWriterConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingWriterConfigBuilder
impl RefUnwindSafe for StreamingWriterConfigBuilder
impl Send for StreamingWriterConfigBuilder
impl Sync for StreamingWriterConfigBuilder
impl Unpin for StreamingWriterConfigBuilder
impl UnwindSafe for StreamingWriterConfigBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more