fn too_many_status_errors(&self, trigger: PolicyTrigger) -> bool {
        let total = self.ferox_scan.num_errors(trigger);
        let requests = self.ferox_scan.requests();

        let ratio = total as f64 / requests as f64;

        match trigger {
            PolicyTrigger::Status403 => ratio >= HIGH_ERROR_RATIO,
            PolicyTrigger::Status429 => ratio >= HIGH_ERROR_RATIO / 3.0,
            _ => false,
        }
    }
/// small function to break out different error checking mechanisms
small function to break out different error checking mechanisms
small function to break out different error checking mechanisms
fn too_many_status_errors(&self, trigger: PolicyTrigger) -> bool {
        let total = self.ferox_scan.num_errors(trigger);
        let requests = self.ferox_scan.requests();
        let ratio = total as f64 / requests as f64;
        match trigger {
            PolicyTrigger::Status403 => ratio >= HIGH_ERROR_RATIO,
            PolicyTrigger::Status429 => ratio >= HIGH_ERROR_RATIO / 3.0,
            _ => false,
        }
    }
fn too_many_status_errors ( & self , trigger : PolicyTrigger ) -> bool { let total = self . ferox_scan . num_errors ( trigger ) ; let requests = self . ferox_scan . requests ( ) ; let ratio = total as f64 / requests as f64 ; match trigger { PolicyTrigger :: Status403 => ratio >= HIGH_ERROR_RATIO , PolicyTrigger :: Status429 => ratio >= HIGH_ERROR_RATIO / 3.0 , _ => false , } }
small function to break out different error checking mechanisms
small function to break out different error checking mechanisms
&self
trigger
PolicyTrigger