routee-compass-core 0.11.3

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::model::state::StateModelError;

#[derive(thiserror::Error, Debug)]
pub enum AccessModelError {
    #[error("error while executing access model {name}: {error}")]
    RuntimeError { name: String, error: String },
    #[error("access model failed due to state transition error: {source}")]
    StateError {
        #[from]
        source: StateModelError,
    },
    #[error("{0}")]
    BuildError(String),
}