pub enum SATSolverError {
Io(Error),
ProcessCrashed {
code: Option<i32>,
},
Timeout {
timeout: Duration,
},
OutputParseError(String),
}Expand description
Errors that can occur during SAT solver execution.
This error type covers all failure modes when running a SAT solver, including I/O errors, process failures, timeouts, and output parsing issues.
Variants§
Io(Error)
An I/O error occurred (e.g., failed to spawn process or write temp file).
ProcessCrashed
The solver process crashed with a non-standard exit code.
Standard exit codes (10 = SAT, 20 = UNSAT, 0 = success) are not errors.
Timeout
The solver exceeded the specified timeout.
When this occurs, the solver process is killed and this error is returned.
OutputParseError(String)
Failed to parse the solver’s output.
This can occur if the solver produces unexpected output format, or if there are inconsistencies in the output.
Trait Implementations§
Source§impl Debug for SATSolverError
impl Debug for SATSolverError
Source§impl Display for SATSolverError
impl Display for SATSolverError
Source§impl Error for SATSolverError
impl Error for SATSolverError
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 SATSolverError
impl !RefUnwindSafe for SATSolverError
impl Send for SATSolverError
impl Sync for SATSolverError
impl Unpin for SATSolverError
impl !UnwindSafe for SATSolverError
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