Enum lattice_qcd_rs::thread::ThreadError
source · #[non_exhaustive]
pub enum ThreadError {
ThreadNumberIncorrect,
Panic(Vec<Option<String>>),
}
Expand description
Multithreading error with a string panic message.
It is more convenient to use compared to ThreadAnyError
and can be converted from it.
It convert message of type String
and &str
otherwise set it to None.
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<Option<String>>)
One of the thread panicked with the given messages.
see run_pool_parallel
example.
Trait Implementations§
source§impl Clone for ThreadError
impl Clone for ThreadError
source§fn clone(&self) -> ThreadError
fn clone(&self) -> ThreadError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadError
impl Debug for ThreadError
source§impl<'de> Deserialize<'de> for ThreadError
impl<'de> Deserialize<'de> for ThreadError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ThreadError
impl Display for ThreadError
source§impl Error for ThreadError
impl Error for ThreadError
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<Error> From<ThreadError> for SymplecticEulerError<Error>
impl<Error> From<ThreadError> for SymplecticEulerError<Error>
source§fn from(err: ThreadError) -> Self
fn from(err: ThreadError) -> 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.
source§impl From<ThreadError> for ThreadedStateInitializationError
impl From<ThreadError> for ThreadedStateInitializationError
source§fn from(err: ThreadError) -> Self
fn from(err: ThreadError) -> Self
Converts to this type from the input type.
source§impl Hash for ThreadError
impl Hash for ThreadError
source§impl PartialEq<ThreadError> for ThreadError
impl PartialEq<ThreadError> for ThreadError
source§fn eq(&self, other: &ThreadError) -> bool
fn eq(&self, other: &ThreadError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ThreadError
impl Serialize for ThreadError
impl Eq for ThreadError
impl StructuralEq for ThreadError
impl StructuralPartialEq for ThreadError
Auto Trait Implementations§
impl RefUnwindSafe for ThreadError
impl Send for ThreadError
impl Sync for ThreadError
impl Unpin for ThreadError
impl UnwindSafe for ThreadError
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.