pub struct ParallelProcessor { /* private fields */ }Expand description
Parallel processor for DDEX builds
Implementations§
Source§impl ParallelProcessor
impl ParallelProcessor
Sourcepub fn new(config: ParallelConfig) -> Result<Self, BuildError>
pub fn new(config: ParallelConfig) -> Result<Self, BuildError>
Create a new parallel processor
Sourcepub fn process_build_parallel(
&self,
request: &BuildRequest,
context: &mut BuildContext,
memory_manager: &BuildMemoryManager,
) -> Result<ParallelBuildResult, BuildError>
pub fn process_build_parallel( &self, request: &BuildRequest, context: &mut BuildContext, memory_manager: &BuildMemoryManager, ) -> Result<ParallelBuildResult, BuildError>
Process a build request with parallel optimizations
Sourcepub fn generate_xml_sections_parallel(
&self,
elements: &[Element],
context: &Arc<Mutex<BuildContext>>,
) -> Result<Vec<String>, BuildError>
pub fn generate_xml_sections_parallel( &self, elements: &[Element], context: &Arc<Mutex<BuildContext>>, ) -> Result<Vec<String>, BuildError>
Parallel XML section generation for large elements
Sourcepub fn validate_items_parallel<T, F>(
&self,
items: &[T],
validator: F,
) -> Result<Vec<ValidationResult>, BuildError>
pub fn validate_items_parallel<T, F>( &self, items: &[T], validator: F, ) -> Result<Vec<ValidationResult>, BuildError>
Parallel validation of multiple items
Auto Trait Implementations§
impl Freeze for ParallelProcessor
impl !RefUnwindSafe for ParallelProcessor
impl Send for ParallelProcessor
impl Sync for ParallelProcessor
impl Unpin for ParallelProcessor
impl !UnwindSafe for ParallelProcessor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more