Searched refs:bandwidth_fn (Results 1 – 1 of 1) sorted by relevance
204 bandwidth_fn: BandwidthFn, field234 let router_bw = self.bandwidth_fn.apply(relay_weight); in weight_bw_for_role()245 let bandwidth_fn = pick_bandwidth_fn(consensus.relays().iter().map(|rs| rs.weight())); in from_consensus() localVariable251 .map(|rs| u64::from(bandwidth_fn.apply(rs.weight()))) in from_consensus()255 Self::from_parts(bandwidth_fn, total_bw, weight_scale, p).validate(consensus) in from_consensus()262 bandwidth_fn: BandwidthFn, in from_parts()322 bandwidth_fn, in from_parts()495 assert_eq!(ws.bandwidth_fn, BandwidthFn::MeasuredOnly); in t_weightset_basic()637 assert_eq!(ws.bandwidth_fn, BandwidthFn::MeasuredOnly); in weightset_from_consensus()