#[non_exhaustive]pub struct MultiVerifyResult<'a> {
pub passed: Vec<&'a DataIntegrityProof>,
pub failed: Vec<(&'a DataIntegrityProof, DataIntegrityError)>,
pub policy_satisfied: bool,
}Expand description
Per-proof verification outcome and the overall policy decision.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.passed: Vec<&'a DataIntegrityProof>Proofs that verified successfully.
failed: Vec<(&'a DataIntegrityProof, DataIntegrityError)>Proofs that failed, paired with the structured error returned by the verifier.
policy_satisfied: boolDid the combination satisfy the requested policy?
Implementations§
Source§impl MultiVerifyResult<'_>
impl MultiVerifyResult<'_>
Sourcepub fn into_result(self) -> Result<(), DataIntegrityError>
pub fn into_result(self) -> Result<(), DataIntegrityError>
Returns Err(MultiProofPolicyFailed) if the policy was not
satisfied, otherwise Ok(()). Use this when you want a single
?-propagatable result instead of inspecting the struct.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MultiVerifyResult<'a>
impl<'a> !UnwindSafe for MultiVerifyResult<'a>
impl<'a> Freeze for MultiVerifyResult<'a>
impl<'a> Send for MultiVerifyResult<'a>
impl<'a> Sync for MultiVerifyResult<'a>
impl<'a> Unpin for MultiVerifyResult<'a>
impl<'a> UnsafeUnpin for MultiVerifyResult<'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