pub enum ChunkedArchiveOptions {
V2 {
minimum_chunk_size: usize,
chunk_alignment: usize,
compression_level: i32,
},
V3 {
compression_algorithm: CompressionAlgorithm,
},
}Expand description
Options for constructing a chunked archive.
Variants§
V2
A chunked-compression V2 archive will be created.
Fields
§
minimum_chunk_size: usizeChunked-compression V2 has a limit of 1023 chunks. If splitting the data up into
minimum_chunk_sized chunks would exceed this limit then the chunk size increased by
chunk_alignment until fewer than 1024 are required. minimum_chunk_size must be a
multiple of chunk_alignment.
V3
A chunked-compression V3 archive will be created.
Fields
§
compression_algorithm: CompressionAlgorithmThe compression algorithm to use to compress the chunks.
Implementations§
Source§impl ChunkedArchiveOptions
impl ChunkedArchiveOptions
Sourcepub fn compressor(&self) -> Compressor
pub fn compressor(&self) -> Compressor
Constructs a compressor to compress chunks based on the specified options.
Sourcepub fn thread_local_compressor(&self) -> ThreadLocalCompressor
pub fn thread_local_compressor(&self) -> ThreadLocalCompressor
Constructs a compressor object that uses a thread local compressor to compress chunks based on the specified options.
Trait Implementations§
Source§impl Clone for ChunkedArchiveOptions
impl Clone for ChunkedArchiveOptions
Source§fn clone(&self) -> ChunkedArchiveOptions
fn clone(&self) -> ChunkedArchiveOptions
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 ChunkedArchiveOptions
impl Debug for ChunkedArchiveOptions
Source§impl PartialEq for ChunkedArchiveOptions
impl PartialEq for ChunkedArchiveOptions
impl Copy for ChunkedArchiveOptions
impl Eq for ChunkedArchiveOptions
impl StructuralPartialEq for ChunkedArchiveOptions
Auto Trait Implementations§
impl Freeze for ChunkedArchiveOptions
impl RefUnwindSafe for ChunkedArchiveOptions
impl Send for ChunkedArchiveOptions
impl Sync for ChunkedArchiveOptions
impl Unpin for ChunkedArchiveOptions
impl UnsafeUnpin for ChunkedArchiveOptions
impl UnwindSafe for ChunkedArchiveOptions
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