pub struct Options {
pub thread_limit: Option<usize>,
pub mode: Mode,
pub allow_thin_pack: bool,
pub chunk_size: usize,
pub version: Version,
}Expand description
Configuration options for the pack generation functions provided in this module.
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: ModeThe algorithm to produce a pack
allow_thin_pack: boolIf 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: usizeThe amount of objects per chunk or unit of work to be sent to threads for processing TODO: could this become the window size?
version: VersionThe pack data version to produce for each entry
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for Options
impl Ord for Options
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Options> for Options
impl PartialEq<Options> for Options
sourceimpl PartialOrd<Options> for Options
impl PartialOrd<Options> for Options
sourcefn partial_cmp(&self, other: &Options) -> Option<Ordering>
fn partial_cmp(&self, other: &Options) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more