pub struct PackConfig {
pub input: PathBuf,
pub base: Option<PathBuf>,
pub output: PathBuf,
pub compression: String,
pub password: Option<String>,
pub block_size: u32,
pub min_chunk: Option<u32>,
pub avg_chunk: Option<u32>,
pub max_chunk: Option<u32>,
pub num_workers: usize,
pub transform: PackTransformFlags,
pub analysis: PackAnalysisFlags,
}Expand description
Configuration for archive packing operations.
Fields§
§input: PathBufInput path (file or directory).
base: Option<PathBuf>Base archive for delta deduplication.
output: PathBufOutput archive file path.
compression: StringCompression algorithm (“lz4” or “zstd”).
password: Option<String>Encryption password (required if encrypt=true).
block_size: u32Block size in bytes.
min_chunk: Option<u32>Minimum chunk size for CDC (auto-detected if None).
avg_chunk: Option<u32>Average chunk size for CDC (auto-detected if None).
max_chunk: Option<u32>Maximum chunk size for CDC (auto-detected if None).
num_workers: usizeNumber of worker threads (0 = auto-detect).
transform: PackTransformFlagsData transformation flags (encryption, dictionary, parallelism).
analysis: PackAnalysisFlagsAnalysis and UI flags (progress, DCAM).
Trait Implementations§
Source§impl Clone for PackConfig
impl Clone for PackConfig
Source§fn clone(&self) -> PackConfig
fn clone(&self) -> PackConfig
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 PackConfig
impl Debug for PackConfig
Auto Trait Implementations§
impl Freeze for PackConfig
impl RefUnwindSafe for PackConfig
impl Send for PackConfig
impl Sync for PackConfig
impl Unpin for PackConfig
impl UnsafeUnpin for PackConfig
impl UnwindSafe for PackConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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