Skip to main content

CandidateValidator

Trait CandidateValidator 

Source
pub trait CandidateValidator {
    // Required method
    fn validate(&self, transaction: &VerifiedTransaction) -> Result<()>;
}
Expand description

A candidate validator supplied by a consumer or by eggup-core helpers.

Required Methods§

Source

fn validate(&self, transaction: &VerifiedTransaction) -> Result<()>

Validates all candidates in an integrity-verified transaction.

§Errors

Returns whatever the validator returns. The validators this crate provides return Error::UnknownMember when a configured member is not part of the transaction, Error::Io when a staged member cannot be spawned or polled, and Error::CandidateExecution when a bounded execution does not produce the expected identity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§