pub fn new(runtime: R, bandwidth: u32, burst_bandwidth: u32) -> BandwidthLimiter<R> {
        let last_calculation = runtime.now();
        BandwidthLimiter {
            runtime,
            bandwidth,
            burst_bandwidth,
            bytes_available: burst_bandwidth as f64,
            last_calculation,
        }
    }
/// The `burst_bandwidth` is the maximum amount of bandwidth credit that can accumulate.
The `burst_bandwidth` is the maximum amount of bandwidth credit that can accumulate.
The ` burst_bandwidth ` is the maximum amount of bandwidth credit that can accumulate .
pub fn new(runtime: R, bandwidth: u32, burst_bandwidth: u32) -> BandwidthLimiter<R> {
        let last_calculation = runtime.now();
        BandwidthLimiter {
            runtime,
            bandwidth,
            burst_bandwidth,
            bytes_available: burst_bandwidth as f64,
            last_calculation,
        }
    }
pub fn new ( runtime : R , bandwidth : u32 , burst_bandwidth : u32 ) -> BandwidthLimiter < R > { let last_calculation = runtime . now ( ) ; BandwidthLimiter { runtime , bandwidth , burst_bandwidth , bytes_available : burst_bandwidth as f64 , last_calculation , } }
The `burst_bandwidth` is the maximum amount of bandwidth credit that can accumulate.
The ` burst_bandwidth ` is the maximum amount of bandwidth credit that can accumulate .
runtime
R
bandwidth
u32
burst_bandwidth
u32
runtime
R
bandwidth
u32
burst_bandwidth
u32