pub enum QueryResult {
Solutions,
ParseError(String),
RuntimeError(String),
}Expand description
Outcome of running one query, with the prefixed message the v1 contract
puts on the wire for the two failure classes. The caller maps these to its
own surface — exit codes 2/3 for the CLI, an {"error":...} object for the
reactor — but the message bytes are produced once, here.
Variants§
Solutions
Solved; solutions live in m.solutions.
ParseError(String)
Query failed to parse — "Parse error: …" (CLI exit 2).
RuntimeError(String)
A runtime error was raised — "Runtime error: …" (CLI exit 3).
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl UnwindSafe for QueryResult
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