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) -> &mut Self
pub fn set_validate_checksums(&mut self, validate_checksums: bool) -> &mut Self
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) -> &mut Self
pub fn set_store_empty_chunks(&mut self, store_empty_chunks: bool) -> &mut Self
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) -> &mut Self
pub fn set_concurrent_target(&mut self, concurrent_target: usize) -> &mut Self
Set the concurrent target.
Sourcepub fn experimental_partial_encoding(&self) -> bool
pub fn experimental_partial_encoding(&self) -> bool
Return the experimental partial encoding setting.
Sourcepub fn set_experimental_partial_encoding(
&mut self,
experimental_partial_encoding: bool,
) -> &mut Self
pub fn set_experimental_partial_encoding( &mut self, experimental_partial_encoding: bool, ) -> &mut Self
Set whether or not to use experimental partial encoding.
Trait Implementations§
Source§impl Clone for CodecOptions
impl Clone for CodecOptions
Source§fn clone(&self) -> CodecOptions
fn clone(&self) -> CodecOptions
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 CodecOptions
impl Debug for CodecOptions
Auto Trait Implementations§
impl Freeze for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl RefUnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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