pub struct CodecOptionsBuilder { /* private fields */ }
Expand description
Builder for CodecOptions
.
Default values for these options are set by the global Config
.
Implementations§
source§impl CodecOptionsBuilder
impl CodecOptionsBuilder
sourcepub fn build(&self) -> CodecOptions
pub fn build(&self) -> CodecOptions
Build into encode options.
sourcepub fn validate_checksums(self, validate_checksums: bool) -> Self
pub fn validate_checksums(self, validate_checksums: bool) -> Self
Set whether or not to validate checksums.
sourcepub fn store_empty_chunks(self, store_empty_chunks: bool) -> Self
pub fn store_empty_chunks(self, store_empty_chunks: bool) -> Self
Set whether or not to store empty chunks.
sourcepub fn concurrent_target(self, concurrent_target: usize) -> Self
pub fn concurrent_target(self, concurrent_target: usize) -> Self
Set the concurrent target for parallel operations.
Trait Implementations§
source§impl Clone for CodecOptionsBuilder
impl Clone for CodecOptionsBuilder
source§fn clone(&self) -> CodecOptionsBuilder
fn clone(&self) -> CodecOptionsBuilder
Returns a copy 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 CodecOptionsBuilder
impl Debug for CodecOptionsBuilder
Auto Trait Implementations§
impl Freeze for CodecOptionsBuilder
impl RefUnwindSafe for CodecOptionsBuilder
impl Send for CodecOptionsBuilder
impl Sync for CodecOptionsBuilder
impl Unpin for CodecOptionsBuilder
impl UnwindSafe for CodecOptionsBuilder
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