pub trait Predicate<INPUT>: Debug {
    // Required methods
    fn evaluate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        input: &'life1 INPUT
    ) -> Pin<Box<dyn Future<Output = PredicateResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn info<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn evaluate<'life0, 'life1, 'async_trait>( &'life0 self, input: &'life1 INPUT ) -> Pin<Box<dyn Future<Output = PredicateResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn info<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl Predicate<ConsensusTaskState<TestTypes, MemoryImpl, TestVersions>> for UpgradeCertPredicate

source§

impl<INPUT> Predicate<INPUT> for TestPredicate<INPUT>
where INPUT: Send + Sync,

source§

impl<TYPES> Predicate<Arc<HotShotEvent<TYPES>>> for EventPredicate<TYPES>
where TYPES: NodeType + Send + Sync + 'static,