pub type Workers = Any<Workers>;Expand description
The checkout.workers key.
Aliased Type§
pub struct Workers {
pub name: &'static str,
pub section: &'static dyn Section,
pub subsection_requirement: Option<SubSectionRequirement>,
pub link: Option<Link>,
pub note: Option<Note>,
/* private fields */
}Fields§
§name: &'static strThe key of the value in the git configuration.
section: &'static dyn SectionThe parent section of the key.
subsection_requirement: Option<SubSectionRequirement>The subsection requirement to use.
link: Option<Link>A link to other resources that might be eligible as value.
note: Option<Note>A note about this key.
Implementations§
Source§impl Workers
impl Workers
Sourcepub fn try_from_workers(
&'static self,
value: Result<i64, Error>,
) -> Result<usize, Error>
pub fn try_from_workers( &'static self, value: Result<i64, Error>, ) -> Result<usize, Error>
Return the amount of threads to use for checkout, with 0 meaning all available ones, after decoding our integer value from config,
or None if the value isn’t set which is typically interpreted as “as many threads as available”