Struct git_pack::data::output::count::objects::Options [−][src]
pub struct Options {
pub thread_limit: Option<usize>,
pub chunk_size: usize,
pub input_object_expansion: ObjectExpansion,
}Expand description
Configuration options for the pack generation functions provied 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.
If more than one thread is used, the order of returned counts is not deterministic anymore
especially when tree traversal is involved. Thus deterministic ordering requires Some(1) to be set.
chunk_size: usizeThe amount of objects per chunk or unit of work to be sent to threads for processing
input_object_expansion: ObjectExpansionThe way input objects are handled
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more