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.