pub struct SolutionFailure<'a> {
    pub attempt_block_num: i64,
    pub attempt_block_addr: ContentAddress,
    pub attempt_solution_ix: u32,
    pub err_msg: Cow<'a, str>,
}Expand description
A failed attempt at applying a solution at a particular location within a particular block.
The builder stores these in order to provide solution submitters feedback in the case that a solution could not be applied trivially and did not make it into a block.
Fields§
§attempt_block_num: i64The number of the block in which the builder attempted to apply the solution.
attempt_block_addr: ContentAddressThe address of the block in which the builder attempted to apply the solution.
attempt_solution_ix: u32The solution index within the block at which the builder attempted to apply the solution.
err_msg: Cow<'a, str>An error message describing why the builder failed to apply the solution.
Trait Implementations§
source§impl<'a> Clone for SolutionFailure<'a>
 
impl<'a> Clone for SolutionFailure<'a>
source§fn clone(&self) -> SolutionFailure<'a>
 
fn clone(&self) -> SolutionFailure<'a>
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<'a> Debug for SolutionFailure<'a>
 
impl<'a> Debug for SolutionFailure<'a>
source§impl<'de, 'a> Deserialize<'de> for SolutionFailure<'a>
 
impl<'de, 'a> Deserialize<'de> for SolutionFailure<'a>
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<'a> Hash for SolutionFailure<'a>
 
impl<'a> Hash for SolutionFailure<'a>
source§impl<'a> Ord for SolutionFailure<'a>
 
impl<'a> Ord for SolutionFailure<'a>
source§fn cmp(&self, other: &SolutionFailure<'a>) -> Ordering
 
fn cmp(&self, other: &SolutionFailure<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for SolutionFailure<'a>
 
impl<'a> PartialEq for SolutionFailure<'a>
source§impl<'a> PartialOrd for SolutionFailure<'a>
 
impl<'a> PartialOrd for SolutionFailure<'a>
source§impl<'a> Serialize for SolutionFailure<'a>
 
impl<'a> Serialize for SolutionFailure<'a>
impl<'a> Eq for SolutionFailure<'a>
impl<'a> StructuralPartialEq for SolutionFailure<'a>
Auto Trait Implementations§
impl<'a> Freeze for SolutionFailure<'a>
impl<'a> RefUnwindSafe for SolutionFailure<'a>
impl<'a> Send for SolutionFailure<'a>
impl<'a> Sync for SolutionFailure<'a>
impl<'a> Unpin for SolutionFailure<'a>
impl<'a> UnwindSafe for SolutionFailure<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)