pub enum SimulationError {
Show 22 variants
InvalidModelConfiguration,
ModelNotFound,
PortNotFound,
ModelCloneError,
InvalidModelState,
EventSchedulingError,
InvalidMessage,
SerializationError,
EmptyPolynomial,
PrerequisiteCalcError,
FloatConvError,
JSONError(Error),
BetaError(BetaError),
ExpError(ExpError),
GammaError(GammaError),
NormalError(NormalError),
TriangularError(TriangularError),
WeibullError(WeibullError),
BernoulliError(BernoulliError),
GeoError(GeoError),
PoissonError(PoissonError),
WeightedError(WeightedError),
}
Expand description
SimulationError
enumerates all possible errors returned by sim
Variants
InvalidModelConfiguration
Represents an invalid model configuration encountered during simulation
ModelNotFound
Represents an operation requested on a model that does not exist
PortNotFound
Represents an operation requested on a model port that does not exist
ModelCloneError
Represents a failed clone operation on a model
InvalidModelState
Represents an invalid model state
EventSchedulingError
Represents an invalid state of event scheduling
InvalidMessage
Represents an invalid inter-model message encountered
SerializationError
Represents a failed serialization operation
EmptyPolynomial
Represents an empty polynomial configuration used in a simulation
PrerequisiteCalcError
Represents an internal logic error, where prerequisite calculations were not executed
FloatConvError
Represents a failed conversion to num-traits Float
JSONError(Error)
Transparent serde_json errors
BetaError(BetaError)
Transparent Beta distribution errors
ExpError(ExpError)
Transparent Exponential distribution errors
GammaError(GammaError)
Transparent Gamma distribution errors
NormalError(NormalError)
Transparent Normal distribution errors
TriangularError(TriangularError)
Transparent Triangular distribution errors
WeibullError(WeibullError)
Transparent Weibull distribution errors
BernoulliError(BernoulliError)
Transparent Bernoulli distribution errors
GeoError(GeoError)
Transparent Geometric distribution errors
PoissonError(PoissonError)
Transparent Poisson distribution errors
WeightedError(WeightedError)
Transparent Weighted Index distribution errors
Trait Implementations
sourceimpl Debug for SimulationError
impl Debug for SimulationError
sourceimpl Display for SimulationError
impl Display for SimulationError
sourceimpl Error for SimulationError
impl Error for SimulationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<BernoulliError> for SimulationError
impl From<BernoulliError> for SimulationError
sourcefn from(source: BernoulliError) -> Self
fn from(source: BernoulliError) -> Self
Performs the conversion.
sourceimpl From<BetaError> for SimulationError
impl From<BetaError> for SimulationError
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourcefn from(source: GammaError) -> Self
fn from(source: GammaError) -> Self
Performs the conversion.
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourcefn from(source: NormalError) -> Self
fn from(source: NormalError) -> Self
Performs the conversion.
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourcefn from(source: WeibullError) -> Self
fn from(source: WeibullError) -> Self
Performs the conversion.
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourceimpl From<Error> for SimulationError
impl From<Error> for SimulationError
sourcefn from(source: PoissonError) -> Self
fn from(source: PoissonError) -> Self
Performs the conversion.
sourceimpl From<TriangularError> for SimulationError
impl From<TriangularError> for SimulationError
sourcefn from(source: TriangularError) -> Self
fn from(source: TriangularError) -> Self
Performs the conversion.
sourceimpl From<WeightedError> for SimulationError
impl From<WeightedError> for SimulationError
sourcefn from(source: WeightedError) -> Self
fn from(source: WeightedError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SimulationError
impl Send for SimulationError
impl Sync for SimulationError
impl Unpin for SimulationError
impl UnwindSafe for SimulationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more