pub enum ParallelBatchExecutorBuildError {
ZeroThreadCount,
}Expand description
Error returned when building a crate::ParallelBatchExecutor.
use qubit_batch::{
ParallelBatchExecutor,
ParallelBatchExecutorBuildError,
};
let error = match ParallelBatchExecutor::builder().thread_count(0).build() {
Ok(_) => panic!("zero worker count should be rejected"),
Err(error) => error,
};
assert_eq!(error, ParallelBatchExecutorBuildError::ZeroThreadCount);Variants§
ZeroThreadCount
The configured worker-thread count is zero.
Trait Implementations§
Source§impl Clone for ParallelBatchExecutorBuildError
impl Clone for ParallelBatchExecutorBuildError
Source§fn clone(&self) -> ParallelBatchExecutorBuildError
fn clone(&self) -> ParallelBatchExecutorBuildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for ParallelBatchExecutorBuildError
impl Error for ParallelBatchExecutorBuildError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ParallelBatchExecutorBuildError
impl PartialEq for ParallelBatchExecutorBuildError
Source§fn eq(&self, other: &ParallelBatchExecutorBuildError) -> bool
fn eq(&self, other: &ParallelBatchExecutorBuildError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParallelBatchExecutorBuildError
impl Eq for ParallelBatchExecutorBuildError
impl StructuralPartialEq for ParallelBatchExecutorBuildError
Auto Trait Implementations§
impl Freeze for ParallelBatchExecutorBuildError
impl RefUnwindSafe for ParallelBatchExecutorBuildError
impl Send for ParallelBatchExecutorBuildError
impl Sync for ParallelBatchExecutorBuildError
impl Unpin for ParallelBatchExecutorBuildError
impl UnsafeUnpin for ParallelBatchExecutorBuildError
impl UnwindSafe for ParallelBatchExecutorBuildError
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