pub enum PredicateApiError {
Io(Error),
InvalidPolicy(String),
TimedOut {
timeout: Duration,
},
OutputLimitExceeded {
stream: &'static str,
limit_bytes: usize,
},
CommandFailed {
exit_code: Option<i32>,
stderr: String,
},
ResourceRefused {
reason: ControllerPlantResourceRefusalReason,
},
Btor2ChannelPropertyResourceRefused {
reason: Btor2ChannelPropertyResourceRefusalReason,
},
IncompatibleContract(String),
InvalidResponse(String),
}Expand description
A stable API error. Logical certificate results are not errors.
Variants§
Io(Error)
InvalidPolicy(String)
TimedOut
OutputLimitExceeded
CommandFailed
ResourceRefused
Fields
Btor2ChannelPropertyResourceRefused
Fields
IncompatibleContract(String)
InvalidResponse(String)
Implementations§
Source§impl PredicateApiError
impl PredicateApiError
pub fn failure_class(&self) -> FailureClass
Trait Implementations§
Source§impl Debug for PredicateApiError
impl Debug for PredicateApiError
Source§impl Display for PredicateApiError
impl Display for PredicateApiError
Source§impl Error for PredicateApiError
impl Error for PredicateApiError
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 PredicateApiError
impl !UnwindSafe for PredicateApiError
impl Freeze for PredicateApiError
impl Send for PredicateApiError
impl Sync for PredicateApiError
impl Unpin for PredicateApiError
impl UnsafeUnpin for PredicateApiError
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