Enum ethcore::engines::ConstructedVerifier
[−]
[src]
pub enum ConstructedVerifier<'a, M: Machine> { Trusted(Box<EpochVerifier<M>>), Unconfirmed(Box<EpochVerifier<M>>, &'a [u8], H256), Err(Error), }
Generated epoch verifier.
Variants
Trusted(Box<EpochVerifier<M>>)
Fully trusted verifier.
Unconfirmed(Box<EpochVerifier<M>>, &'a [u8], H256)
Verifier unconfirmed. Check whether given finality proof finalizes given hash under previous epoch.
Err(Error)
Error constructing verifier.
Methods
impl<'a, M: Machine> ConstructedVerifier<'a, M>
[src]
impl<'a, M: Machine> ConstructedVerifier<'a, M>
pub fn known_confirmed(self) -> Result<Box<EpochVerifier<M>>, Error>
[src]
pub fn known_confirmed(self) -> Result<Box<EpochVerifier<M>>, Error>
Convert to a result, indicating that any necessary confirmation has been done already.
Trait Implementations
Auto Trait Implementations
impl<'a, M> Send for ConstructedVerifier<'a, M>
impl<'a, M> Send for ConstructedVerifier<'a, M>
impl<'a, M> !Sync for ConstructedVerifier<'a, M>
impl<'a, M> !Sync for ConstructedVerifier<'a, M>