pub struct AsyncWriterBuilder<W> { /* private fields */ }Expand description
Builder for AsyncWriter.
Implementations§
Source§impl<W> AsyncWriterBuilder<W>
impl<W> AsyncWriterBuilder<W>
Sourcepub fn options(self, options: WriterOptions) -> Self
pub fn options(self, options: WriterOptions) -> Self
Overrides writer options wholesale.
Sourcepub fn codec_parallelism(self, parallelism: CodecParallelism) -> Self
pub fn codec_parallelism(self, parallelism: CodecParallelism) -> Self
Selects the runtime policy for independent chain compression jobs.
Sourcepub fn chain_compression(self, compression: ChainCompression) -> Self
pub fn chain_compression(self, compression: ChainCompression) -> Self
Selects the per-chain compression.
Sourcepub fn time_compression(self, compression: TimeCompression) -> Self
pub fn time_compression(self, compression: TimeCompression) -> Self
Selects the time-table compression.
Sourcepub fn hierarchy_compression(self, compression: HierarchyCompression) -> Self
pub fn hierarchy_compression(self, compression: HierarchyCompression) -> Self
Selects compression for the hierarchy declaration block.
Sourcepub fn dynamic_alias_encoding(self, encoding: DynamicAliasEncoding) -> Self
pub fn dynamic_alias_encoding(self, encoding: DynamicAliasEncoding) -> Self
Chooses the legacy or current dynamic-alias index representation.
Sourcepub fn wrap_with_zlib(self, wrap: bool) -> Self
pub fn wrap_with_zlib(self, wrap: bool) -> Self
Toggles the outer gzip wrapper.
Sourcepub fn timescale_exponent(self, exponent: i8) -> Self
pub fn timescale_exponent(self, exponent: i8) -> Self
Sets the header timescale exponent.
Sourcepub fn compression_level(self, level: Option<u32>) -> Self
pub fn compression_level(self, level: Option<u32>) -> Self
Sets an optional compression level hint.
Sourcepub fn block_change_limit(self, limit: usize) -> Self
pub fn block_change_limit(self, limit: usize) -> Self
Bounds memory used by the synchronous block builder inside this async wrapper.
Sourcepub fn block_size_limit(self, bytes: usize) -> Self
pub fn block_size_limit(self, bytes: usize) -> Self
Sets the approximate queued payload byte limit for each VC block.
Sourcepub fn build(self) -> Result<AsyncWriter<W>>
pub fn build(self) -> Result<AsyncWriter<W>>
Builds the async writer, validating options before returning the instance.
Auto Trait Implementations§
impl<W> Freeze for AsyncWriterBuilder<W>where
W: Freeze,
impl<W> RefUnwindSafe for AsyncWriterBuilder<W>where
W: RefUnwindSafe,
impl<W> Send for AsyncWriterBuilder<W>where
W: Send,
impl<W> Sync for AsyncWriterBuilder<W>where
W: Sync,
impl<W> Unpin for AsyncWriterBuilder<W>where
W: Unpin,
impl<W> UnsafeUnpin for AsyncWriterBuilder<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for AsyncWriterBuilder<W>where
W: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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