pub enum FaultError {
InvalidPlanSize,
DuplicateCase(FaultCaseId),
InvalidInvariantRequirement(FaultCaseId),
UnplannedCase(FaultCaseId),
CountOverflow(FaultCaseId),
InvalidTransition(FaultCaseId),
}Expand description
Invalid fault-plan or transition data.
Variants§
InvalidPlanSize
The plan is empty or exceeds the closed matrix.
DuplicateCase(FaultCaseId)
A case occurs more than once in a plan or report.
InvalidInvariantRequirement(FaultCaseId)
The invariant-check requirement is outside its bound.
UnplannedCase(FaultCaseId)
A transition references a case outside the plan.
CountOverflow(FaultCaseId)
A transition count overflowed.
InvalidTransition(FaultCaseId)
Injection, recovery or invariant checks occurred in an impossible order.
Trait Implementations§
Source§impl Clone for FaultError
impl Clone for FaultError
Source§impl Debug for FaultError
impl Debug for FaultError
Source§impl Display for FaultError
impl Display for FaultError
impl Eq for FaultError
Source§impl Error for FaultError
impl Error for FaultError
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()
Source§impl From<FaultError> for ReportError
impl From<FaultError> for ReportError
Source§fn from(source: FaultError) -> Self
fn from(source: FaultError) -> Self
Converts to this type from the input type.
Source§impl From<FaultError> for RunError
impl From<FaultError> for RunError
Source§fn from(source: FaultError) -> Self
fn from(source: FaultError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FaultError
impl PartialEq for FaultError
impl StructuralPartialEq for FaultError
Auto Trait Implementations§
impl Forget for FaultError
impl Freeze for FaultError
impl Move for FaultError
impl RefUnwindSafe for FaultError
impl Send for FaultError
impl Sync for FaultError
impl Unpin for FaultError
impl UnsafeUnpin for FaultError
impl UnwindSafe for FaultError
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