RsBundle  Diff

Differences From Artifact [fc4222062d]:

  • File src/mpi/problem.rs — part of check-in [36962b5e4b] at 2023-04-28 13:14:50 on branch mpi — DistributedFirstOrderProblem: add `problem` accessor. (user: fifr size: 10937)

To Artifact [3853b4fbb7]:

  • File src/mpi/problem.rs — part of check-in [6392633aea] at 2023-04-28 13:15:13 on branch mpi — Make `mpi::Error` serializable itself (user: fifr size: 10961) [more...]

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),