34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
use crate::mpi::msg::{recv_msg, send_msg};
use serde::de::DeserializeOwned;
use std::collections::VecDeque;
use std::sync::Arc;
/// Error raised by the MPI [`Problem`].
#[derive(Debug, Error)]
pub enum Error<E> {
/// MPI error.
#[error("MPI error")]
MPI,
/// Original oracle error.
#[error("Error by underlying oracle")]
OracleError(#[source] E),
|
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
use crate::mpi::msg::{recv_msg, send_msg};
use serde::de::DeserializeOwned;
use std::collections::VecDeque;
use std::sync::Arc;
/// 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),
|