pub struct SolutionSetFailure<'a> {
pub attempt_block_num: i64,
pub attempt_block_addr: ContentAddress,
pub attempt_solution_set_ix: u32,
pub err_msg: Cow<'a, str>,
}
Expand description
A failed attempt at applying a solution set at a particular location within a particular block.
The builder stores these in order to provide solution set submitters feedback in the case that a solution set could not be applied trivially and did not make it into a block.
Fields§
§attempt_block_num: i64
The number of the block in which the builder attempted to apply the solution set.
attempt_block_addr: ContentAddress
The address of the block in which the builder attempted to apply the solution set.
attempt_solution_set_ix: u32
The solution set index within the block at which the builder attempted to apply the solution set.
err_msg: Cow<'a, str>
An error message describing why the builder failed to apply the solution set.
Trait Implementations§
Source§impl<'a> Clone for SolutionSetFailure<'a>
impl<'a> Clone for SolutionSetFailure<'a>
Source§fn clone(&self) -> SolutionSetFailure<'a>
fn clone(&self) -> SolutionSetFailure<'a>
Returns a duplicate 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 SolutionSetFailure<'a>
impl<'a> Debug for SolutionSetFailure<'a>
Source§impl<'de, 'a> Deserialize<'de> for SolutionSetFailure<'a>
impl<'de, 'a> Deserialize<'de> for SolutionSetFailure<'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 SolutionSetFailure<'a>
impl<'a> Hash for SolutionSetFailure<'a>
Source§impl<'a> Ord for SolutionSetFailure<'a>
impl<'a> Ord for SolutionSetFailure<'a>
Source§fn cmp(&self, other: &SolutionSetFailure<'a>) -> Ordering
fn cmp(&self, other: &SolutionSetFailure<'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 SolutionSetFailure<'a>
impl<'a> PartialEq for SolutionSetFailure<'a>
Source§impl<'a> PartialOrd for SolutionSetFailure<'a>
impl<'a> PartialOrd for SolutionSetFailure<'a>
Source§impl<'a> Serialize for SolutionSetFailure<'a>
impl<'a> Serialize for SolutionSetFailure<'a>
impl<'a> Eq for SolutionSetFailure<'a>
impl<'a> StructuralPartialEq for SolutionSetFailure<'a>
Auto Trait Implementations§
impl<'a> Freeze for SolutionSetFailure<'a>
impl<'a> RefUnwindSafe for SolutionSetFailure<'a>
impl<'a> Send for SolutionSetFailure<'a>
impl<'a> Sync for SolutionSetFailure<'a>
impl<'a> Unpin for SolutionSetFailure<'a>
impl<'a> UnwindSafe for SolutionSetFailure<'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