pub fn from(scanner: &FeroxScanner, ferox_scan: Arc<FeroxScan>) -> Result<Self> {
        let limit = scanner.handles.config.rate_limit;

        let rate_limiter = if limit > 0 {
            Some(Self::build_a_bucket(limit)?)
        } else {
            None
        };

        let policy_data = PolicyData::new(
            scanner.handles.config.requester_policy,
            scanner.handles.config.timeout,
        );

        Ok(Self {
            ferox_scan,
            policy_data,
            seen_links: RwLock::new(HashSet::<String>::new()),
            rate_limiter: RwLock::new(rate_limiter),
            handles: scanner.handles.clone(),
            target_url: scanner.target_url.to_owned(),
            tuning_lock: Mutex::new(0),
        })
    }
/// given a FeroxScanner, create a Requester
given a FeroxScanner, create a Requester
given a FeroxScanner create a Requester
pub fn from(scanner: &FeroxScanner, ferox_scan: Arc<FeroxScan>) -> Result<Self> {
        let limit = scanner.handles.config.rate_limit;
        let rate_limiter = if limit > 0 {
            Some(Self::build_a_bucket(limit)?)
        } else {
            None
        };
        let policy_data = PolicyData::new(
            scanner.handles.config.requester_policy,
            scanner.handles.config.timeout,
        );
        Ok(Self {
            ferox_scan,
            policy_data,
            seen_links: RwLock::new(HashSet::<String>::new()),
            rate_limiter: RwLock::new(rate_limiter),
            handles: scanner.handles.clone(),
            target_url: scanner.target_url.to_owned(),
            tuning_lock: Mutex::new(0),
        })
    }
pub fn from ( scanner : & FeroxScanner , ferox_scan : Arc < FeroxScan > ) -> Result < Self > { let limit = scanner . handles . config . rate_limit ; let rate_limiter = if limit > 0 { Some ( Self :: build_a_bucket ( limit ) ? ) } else { None } ; let policy_data = PolicyData :: new ( scanner . handles . config . requester_policy , scanner . handles . config . timeout , ) ; Ok ( Self { ferox_scan , policy_data , seen_links : RwLock :: new ( HashSet :: < String > :: new ( ) ) , rate_limiter : RwLock :: new ( rate_limiter ) , handles : scanner . handles . clone ( ) , target_url : scanner . target_url . to_owned ( ) , tuning_lock : Mutex :: new ( 0 ) , } ) }
given a FeroxScanner, create a Requester
given a FeroxScanner create a Requester
scanner
&FeroxScanner
ferox_scan
Arc<FeroxScan>