#[non_exhaustive]pub enum ApiError {
BudgetStartup(StartError),
BudgetMeasurement(MeasurementError),
Io {
path: String,
error: Error,
},
Unsupported {
feature: String,
},
Rejected {
message: String,
},
}Expand description
Errors from the API that are not diagnostics about the source.
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.
BudgetStartup(StartError)
A requested run budget could not be enforced; no check ran.
BudgetMeasurement(MeasurementError)
Required memory observation failed; no verdict is produced.
Io
The file could not be read.
Unsupported
The request needs a feature dive does not implement yet. No result is produced (soundness contract rule 3).
Rejected
The input is rejected: the specification or configuration has errors, or the model cannot be bound (TLC’s error).
Trait Implementations§
Source§impl Error for ApiError
impl Error for ApiError
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 !RefUnwindSafe for ApiError
impl !UnwindSafe for ApiError
impl Forget for ApiError
impl Freeze for ApiError
impl Move for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
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