Struct gitoxide_core::pack::create::Context [−][src]
pub struct Context<W> {
pub expansion: ObjectExpansion,
pub nondeterministic_count: bool,
pub thread_limit: Option<usize>,
pub statistics: Option<OutputFormat>,
pub out: W,
}Expand description
A general purpose context for many operations provided here
Fields
expansion: ObjectExpansionThe way input objects should be handled
nondeterministic_count: boolIf set, use tread_limit to accelerate the counting phase at the cost of loosing determinism as the order of objects
during expansion changes with multiple threads unless no expansion is performed. In the latter case, this flag
has no effect.
If unset, counting will only use one thread and thus yield the same sequence of objects in any case.
If the thread_limit is 1, the count is always deterministic.
thread_limit: Option<usize>If set, don’t use more than this amount of threads. Otherwise, usually use as many threads as there are logical cores. A value of 0 is interpreted as no-limit
statistics: Option<OutputFormat>If set, statistics about the operation will be written to the output stream.
out: WThe output stream for use of additional information