pub enum ConstructedVerifier<'a, M: Machine> {
    Trusted(Box<dyn EpochVerifier<M>>),
    Unconfirmed(Box<dyn EpochVerifier<M>>, &'a [u8]H256),
    Err(Error),
}
Expand description

Generated epoch verifier.

Variants

Trusted(Box<dyn EpochVerifier<M>>)

Fully trusted verifier.

Unconfirmed(Box<dyn EpochVerifier<M>>, &'a [u8]H256)

Verifier unconfirmed. Check whether given finality proof finalizes given hash under previous epoch.

Err(Error)

Error constructing verifier.

Implementations

Convert to a result, indicating that any necessary confirmation has been done already.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.