pub enum Verdict {
Success,
NotEnoughTrust(VotingPowerTally),
Invalid(VerificationErrorDetail),
}Expand description
Represents the result of the verification performed by the verifier component.
Variants§
Success
Verification succeeded, the block is valid.
NotEnoughTrust(VotingPowerTally)
The minimum voting power threshold is not reached, the block cannot be trusted yet.
Invalid(VerificationErrorDetail)
Verification failed, the block is invalid.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
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
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnwindSafe for Verdict
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