Enum ethcore::engines::ConstructedVerifier
source · [−]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
sourceimpl<'a, M: Machine> ConstructedVerifier<'a, M>
impl<'a, M: Machine> ConstructedVerifier<'a, M>
sourcepub fn known_confirmed(self) -> Result<Box<dyn EpochVerifier<M>>, Error>
pub fn known_confirmed(self) -> Result<Box<dyn EpochVerifier<M>>, Error>
Convert to a result, indicating that any necessary confirmation has been done already.
Auto Trait Implementations
impl<'a, M> !RefUnwindSafe for ConstructedVerifier<'a, M>
impl<'a, M> Send for ConstructedVerifier<'a, M>
impl<'a, M> !Sync for ConstructedVerifier<'a, M>
impl<'a, M> Unpin for ConstructedVerifier<'a, M>
impl<'a, M> !UnwindSafe for ConstructedVerifier<'a, M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more