36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
use serde::de::DeserializeOwned;
use std::collections::VecDeque;
use std::sync::Arc;
use std::time::Instant;
/// Error raised by the MPI [`Problem`].
#[derive(Debug, Error, Serialize, Deserialize)]
pub enum Error<E> {
/// MPI error.
#[error("MPI error")]
MPI,
/// Original oracle error.
#[error("Error by underlying oracle")]
OracleError(#[source] E),
|
>
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
use serde::de::DeserializeOwned;
use std::collections::VecDeque;
use std::sync::Arc;
use std::time::Instant;
/// Error raised by the MPI [`Problem`].
#[derive(Debug, Error, Serialize, Deserialize)]
#[allow(clippy::upper_case_acronyms)]
pub enum Error<E> {
/// MPI error.
#[error("MPI error")]
MPI,
/// Original oracle error.
#[error("Error by underlying oracle")]
OracleError(#[source] E),
|