pub enum BuilderErrorKind {
NonExistentCpus {
cpu: usize,
},
InsufficientCpus {
required: usize,
available: usize,
},
NrShards {
minimum: usize,
shards: usize,
},
ThreadPanic(Box<dyn Any + Send>),
}Expand description
Error types that can be created when building executors.
Variants§
NonExistentCpus
Error type for specifying a CPU that doesn’t exist
InsufficientCpus
Error type for using a Placement that requires
more CPUs than available.
Fields
NrShards
Error type for using Placement::Custom
with a number of CpuSets that does not match the
number of shards requested.
Fields
ThreadPanic(Box<dyn Any + Send>)
Error type returned by
PoolThreadHandles::join_all
for threads that panicked. The contained error is forwarded from
JoinHandle.
Trait Implementations§
Source§impl Debug for BuilderErrorKind
impl Debug for BuilderErrorKind
Auto Trait Implementations§
impl Freeze for BuilderErrorKind
impl !RefUnwindSafe for BuilderErrorKind
impl Send for BuilderErrorKind
impl !Sync for BuilderErrorKind
impl Unpin for BuilderErrorKind
impl !UnwindSafe for BuilderErrorKind
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