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<SolutionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolutionOutcome, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more