pub struct CodecOptions { /* private fields */ }
Expand description
Codec options for encoding/decoding.
Default values for these options are set by the global Config
.
Implementations§
source§impl CodecOptions
impl CodecOptions
sourcepub fn builder() -> CodecOptionsBuilder
pub fn builder() -> CodecOptionsBuilder
Create a new default codec options builder.
sourcepub fn into_builder(&self) -> CodecOptionsBuilder
pub fn into_builder(&self) -> CodecOptionsBuilder
Copy codec options into a new CodecOptionsBuilder
.
sourcepub fn validate_checksums(&self) -> bool
pub fn validate_checksums(&self) -> bool
Return the validate checksums setting.
sourcepub fn set_validate_checksums(&mut self, validate_checksums: bool)
pub fn set_validate_checksums(&mut self, validate_checksums: bool)
Set whether or not to validate checksums.
sourcepub fn store_empty_chunks(&self) -> bool
pub fn store_empty_chunks(&self) -> bool
Return the store empty chunks setting.
sourcepub fn set_store_empty_chunks(&mut self, store_empty_chunks: bool)
pub fn set_store_empty_chunks(&mut self, store_empty_chunks: bool)
Set whether or not to store empty chunks.
sourcepub fn concurrent_target(&self) -> usize
pub fn concurrent_target(&self) -> usize
Return the concurrent target.
sourcepub fn set_concurrent_target(&mut self, concurrent_target: usize)
pub fn set_concurrent_target(&mut self, concurrent_target: usize)
Set the concurrent target.
Trait Implementations§
source§impl Clone for CodecOptions
impl Clone for CodecOptions
source§fn clone(&self) -> CodecOptions
fn clone(&self) -> CodecOptions
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 CodecOptions
impl Debug for CodecOptions
Auto Trait Implementations§
impl Freeze for CodecOptions
impl RefUnwindSafe for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl Unpin for CodecOptions
impl UnwindSafe for CodecOptions
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