pub enum BackendError {
BackendNotAvailable {
requested: String,
available: Vec<String>,
},
InvalidBackend {
requested: String,
available: Vec<String>,
},
InitializationFailed {
backend: String,
source: Box<dyn Error + Send + Sync>,
},
MissingConfiguration {
backend: String,
missing_vars: Vec<String>,
},
}Expand description
Errors that can occur during backend selection and initialization.
This type is returned by the factory function create_communicator when the
requested backend cannot be selected or initialized.
Variants§
BackendNotAvailable
The requested backend is not compiled into this binary.
The user or environment requested a backend that was not enabled via Cargo feature flags at compile time.
Fields
InvalidBackend
The requested backend name is not recognized.
The value set in COBRE_COMM_BACKEND does not match any known backend name.
Fields
InitializationFailed
The backend initialization failed.
The backend was correctly selected but failed to initialize, for example because the MPI runtime is not installed, the TCP coordinator is unreachable, or the shared memory segment does not exist.
Fields
MissingConfiguration
Required environment variables for the selected backend are not set.
The TCP and shared memory backends require additional configuration via environment variables. This error lists the variables that are missing.
Trait Implementations§
Source§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()