pub trait ParallelReporter<Data: Size>: Reporter<Data> {
    type DestructionError;

    // Required method
    fn destroy(self) -> Result<(), Self::DestructionError>;
}
Expand description

Utilize threads to report progress.

Required Associated Types§

source

type DestructionError

Error type of the destroy method.

Required Methods§

source

fn destroy(self) -> Result<(), Self::DestructionError>

Stop all threads.

Implementors§

source§

impl<Data, ReportError> ParallelReporter<Data> for ErrorOnlyReporter<ReportError>
where Data: Size, ReportError: Fn(ErrorReport<'_>),

source§

impl<Data, ReportError> ParallelReporter<Data> for ProgressAndErrorReporter<Data, ReportError>
where Data: Size + Into<u64> + Send + Sync, ReportError: Fn(ErrorReport<'_>) + Sync, u64: Into<Data>,