pub struct Options {
pub thread_limit: Option<usize>,
pub mode: Mode,
pub allow_thin_pack: bool,
pub chunk_size: usize,
pub version: Version,
}
generate
only.Expand description
Configuration options for the pack generation functions provided in iter_from_counts()
.
Fields§
§thread_limit: Option<usize>
The amount of threads to use at most when resolving the pack. If None
, all logical cores are used.
mode: Mode
The algorithm to produce a pack
allow_thin_pack: bool
If set, the resulting back can have deltas that refer to an object which is not in the pack. This can happen if the initial counted objects do not contain an object that an existing packed delta refers to, for example, because it wasn’t part of the iteration, for instance when the iteration was performed on tree deltas or only a part of the commit graph. Please note that thin packs are not valid packs at rest, thus they are only valid for packs in transit.
If set to false, delta objects will be decompressed and recompressed as base objects.
chunk_size: usize
The amount of objects per chunk or unit of work to be sent to threads for processing TODO: could this become the window size?
version: Version
The pack data version to produce for each entry
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Ord for Options
impl Ord for Options
source§impl PartialEq for Options
impl PartialEq for Options
source§impl PartialOrd for Options
impl PartialOrd for Options
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)