Enum lattice_qcd_rs::thread::ThreadAnyError
source · #[non_exhaustive]
pub enum ThreadAnyError {
ThreadNumberIncorrect,
Panic(Vec<Box<dyn Any + Send + 'static>>),
}
Expand description
Multithreading error.
This can be converted to ThreadError
which is more convenient to use keeping only the case
with String
and &str
messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThreadNumberIncorrect
Tried to run some jobs with 0 threads
Panic(Vec<Box<dyn Any + Send + 'static>>)
One or more of the threads panicked. Inside the Box
is the panic message.
see run_pool_parallel
example.
Trait Implementations§
source§impl Debug for ThreadAnyError
impl Debug for ThreadAnyError
source§impl Display for ThreadAnyError
impl Display for ThreadAnyError
source§impl Error for ThreadAnyError
impl Error for ThreadAnyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<ThreadAnyError> for ThreadError
impl From<ThreadAnyError> for ThreadError
source§fn from(f: ThreadAnyError) -> Self
fn from(f: ThreadAnyError) -> Self
Converts to this type from the input type.
source§impl From<ThreadError> for ThreadAnyError
impl From<ThreadError> for ThreadAnyError
source§fn from(f: ThreadError) -> Self
fn from(f: ThreadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ThreadAnyError
impl Send for ThreadAnyError
impl !Sync for ThreadAnyError
impl Unpin for ThreadAnyError
impl !UnwindSafe for ThreadAnyError
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.