pub struct Options {
pub thread_limit: Option<usize>,
pub chunk_size: usize,
pub input_object_expansion: ObjectExpansion,
}
Available on crate feature
generate
only.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.
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: usize
The amount of objects per chunk or unit of work to be sent to threads for processing
input_object_expansion: ObjectExpansion
The way input objects are handled
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Options
impl Ord for Options
Source§impl PartialOrd for Options
impl PartialOrd for Options
impl 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
Mutably borrows from an owned value. Read more