Trait rings_core::measure::BehaviourJudgement

source ·
pub trait BehaviourJudgement: Measure {
    // Required method
    fn good<'life0, 'async_trait>(
        &'life0 self,
        did: Did
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

BehaviourJudgement trait defines a method good for assessing whether a node behaves well. Any structure implementing this trait should provide a way to measure the “goodness” of a node.

Required Methods§

source

fn good<'life0, 'async_trait>( &'life0 self, did: Did ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

This asynchronous method should return a boolean indicating whether the node identified by did is behaving well.

Implementors§