pub struct Options {
pub thread_limit: Option<usize>,
pub iteration_mode: Mode,
pub index_version: Version,
pub object_hash: Kind,
}
Expand description
Configuration for write_to_directory or write_to_directory_eagerly
Fields
thread_limit: Option<usize>
The amount of threads to use at most when resolving the pack. If None
, all logical cores are used.
iteration_mode: Mode
Determine how much processing to spend on protecting against corruption or recovering from errors.
index_version: Version
The version of pack index to write, should be crate::index::Version::default()
object_hash: Kind
The kind of hash to use when writing the bundle.
Trait Implementations
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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