#[non_exhaustive]pub enum SimulationError {
Show 21 variants
InvalidState {
operation: SimulationOperation,
status: SimulationStatus,
},
Faulted {
operation: SimulationOperation,
},
UnknownExecuteEntry {
entry: ExecuteEntryId,
},
UnknownClockType {
clock_type: ClockTypeId,
},
NativeClockTypeNotBound {
rust_type: &'static str,
},
UnknownClockInstance {
key: ClockKey,
},
DuplicateClockInstance {
key: ClockKey,
},
InvalidExecuteInput {
entry: ExecuteEntryId,
violations: Vec<SchemaViolation>,
},
UnexpectedExecuteOutput {
entry: ExecuteEntryId,
},
ExecuteOutputEncodingFailed {
entry: ExecuteEntryId,
},
MissingExecuteOutput {
entry: ExecuteEntryId,
},
ConflictingExecuteOutput {
entry: ExecuteEntryId,
},
InvalidExecuteOutput {
entry: ExecuteEntryId,
violations: Vec<SchemaViolation>,
},
InvalidClockValue {
key: ClockKey,
violations: Vec<SchemaViolation>,
},
ClockValueRejected {
key: ClockKey,
code: ClockErrorCode,
message: String,
},
InvalidAdvanceRequest {
clock_type: ClockTypeId,
reason: AdvanceRequestViolation,
},
InvalidClockStep {
clock_type: ClockTypeId,
instance: ClockInstanceId,
violations: Vec<SchemaViolation>,
},
ClockTransitionFailed {
clock_type: ClockTypeId,
instance: ClockInstanceId,
code: ClockErrorCode,
message: String,
},
SystemFailed {
system: SystemId,
trigger: SystemTrigger,
code: SystemErrorCode,
message: String,
},
BackendFailure {
backend: BackendId,
operation: SimulationOperation,
code: String,
message: String,
},
BackendPanicked {
backend: BackendId,
operation: SimulationOperation,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidState
Faulted
Fields
§
operation: SimulationOperationUnknownExecuteEntry
Fields
§
entry: ExecuteEntryIdUnknownClockType
Fields
§
clock_type: ClockTypeIdNativeClockTypeNotBound
UnknownClockInstance
DuplicateClockInstance
InvalidExecuteInput
UnexpectedExecuteOutput
Fields
§
entry: ExecuteEntryIdExecuteOutputEncodingFailed
Fields
§
entry: ExecuteEntryIdMissingExecuteOutput
Fields
§
entry: ExecuteEntryIdConflictingExecuteOutput
Fields
§
entry: ExecuteEntryIdInvalidExecuteOutput
InvalidClockValue
ClockValueRejected
InvalidAdvanceRequest
InvalidClockStep
ClockTransitionFailed
SystemFailed
BackendFailure
BackendPanicked
Trait Implementations§
Source§impl Debug for SimulationError
impl Debug for SimulationError
Source§impl Display for SimulationError
impl Display for SimulationError
Source§impl Error for SimulationError
impl Error for SimulationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SimulationError
impl RefUnwindSafe for SimulationError
impl Send for SimulationError
impl Sync for SimulationError
impl Unpin for SimulationError
impl UnsafeUnpin for SimulationError
impl UnwindSafe for SimulationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more