pub struct ParallelConfig {
pub threads: u64,
pub batch_files: Option<u64>,
pub batch_size_bytes: Option<u64>,
pub min_files: Option<u64>,
pub min_size_bytes: Option<u64>,
}Expand description
Configuration for the --parallel option of p4 sync.
Controls how files are transferred in parallel. threads is required;
all other sub-options are optional and fall back to server defaults when
omitted.
Fields§
§threads: u64Number of concurrent network connections (threads=N).
batch_files: Option<u64>Number of files in a batch (batch=N).
batch_size_bytes: Option<u64>Number of bytes in a batch (batchsize=N).
min_files: Option<u64>Minimum number of files for a parallel sync (min=N).
min_size_bytes: Option<u64>Minimum number of bytes for a parallel sync (minsize=N).
Implementations§
Trait Implementations§
Source§impl Clone for ParallelConfig
impl Clone for ParallelConfig
Source§impl Debug for ParallelConfig
impl Debug for ParallelConfig
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnsafeUnpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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