pub struct BatchProcessor { /* private fields */ }Expand description
Batch processor for handling multiple PDF operations
Implementations§
Source§impl BatchProcessor
impl BatchProcessor
Sourcepub fn new(options: BatchOptions) -> Self
pub fn new(options: BatchOptions) -> Self
Create a new batch processor
Sourcepub fn add_jobs(&mut self, jobs: impl IntoIterator<Item = BatchJob>)
pub fn add_jobs(&mut self, jobs: impl IntoIterator<Item = BatchJob>)
Add multiple jobs
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Check if cancelled
Sourcepub fn execute(self) -> Result<BatchSummary>
pub fn execute(self) -> Result<BatchSummary>
Execute the batch
Sourcepub fn get_progress(&self) -> ProgressInfo
pub fn get_progress(&self) -> ProgressInfo
Get current progress
Auto Trait Implementations§
impl Freeze for BatchProcessor
impl !RefUnwindSafe for BatchProcessor
impl Send for BatchProcessor
impl !Sync for BatchProcessor
impl Unpin for BatchProcessor
impl !UnwindSafe for BatchProcessor
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