FaultDetector

pub trait FaultDetector: Debug {
    // Required methods
    fn detect_faults<'life0, 'life1, 'async_trait>(
        &'life0 self,
        nodes: &'life1 HashMap<NodeId, NodeInfo>,
    ) -> Pin<Box<dyn Future<Output = Vec<Fault>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_detection_confidence(&self) -> f64;
    fn get_false_positive_rate(&self) -> f64;
}
Expand description

Trait for fault detection

Required Methods§

Source

fn detect_faults<'life0, 'life1, 'async_trait>( &'life0 self, nodes: &'life1 HashMap<NodeId, NodeInfo>, ) -> Pin<Box<dyn Future<Output = Vec<Fault>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_detection_confidence(&self) -> f64

Source

fn get_false_positive_rate(&self) -> f64

Implementors§