pub enum SolutionOutcome {
Success(u64),
Fail(String),
}
Expand description
The outcome of a solution, that is:
- Utility if the solution was included in a block.
- Failure reason if solution failed constraint checking or was not composable with other solutions.
This may be a stringified
SolutionFailReason
.
Variants§
Success(u64)
The solution was successful and included in a block.
Fail(String)
The solution failed and was not included in a block.
Trait Implementations§
Source§impl Clone for SolutionOutcome
impl Clone for SolutionOutcome
Source§fn clone(&self) -> SolutionOutcome
fn clone(&self) -> SolutionOutcome
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SolutionOutcome
impl Debug for SolutionOutcome
Source§impl<'de> Deserialize<'de> for SolutionOutcome
impl<'de> Deserialize<'de> for SolutionOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SolutionOutcome
impl PartialEq for SolutionOutcome
Source§impl Serialize for SolutionOutcome
impl Serialize for SolutionOutcome
impl StructuralPartialEq for SolutionOutcome
Auto Trait Implementations§
impl Freeze for SolutionOutcome
impl RefUnwindSafe for SolutionOutcome
impl Send for SolutionOutcome
impl Sync for SolutionOutcome
impl Unpin for SolutionOutcome
impl UnwindSafe for SolutionOutcome
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