pub struct CoalescingStats {
pub original_requests: usize,
pub coalesced_requests: usize,
pub bytes_fetched: u64,
pub bytes_needed: u64,
pub overhead_bytes: u64,
}Expand description
Statistics describing the efficiency of a coalescing operation.
Fields§
§original_requests: usizeNumber of original (pre-coalescing) range requests.
coalesced_requests: usizeNumber of coalesced (post-coalescing) fetch requests.
bytes_fetched: u64Total bytes that will be fetched (including gap fill-in).
bytes_needed: u64Total bytes actually needed (sum of original range lengths).
overhead_bytes: u64Bytes fetched that are not part of any original range.
Implementations§
Source§impl CoalescingStats
impl CoalescingStats
Sourcepub fn overhead_ratio(&self) -> f64
pub fn overhead_ratio(&self) -> f64
Fraction of fetched bytes that are overhead (0.0 = no overhead).
Sourcepub fn request_reduction(&self) -> f64
pub fn request_reduction(&self) -> f64
Fraction by which the request count was reduced (0.0 = no reduction,
1.0 = all merged into one).
Trait Implementations§
Source§impl Clone for CoalescingStats
impl Clone for CoalescingStats
Source§fn clone(&self) -> CoalescingStats
fn clone(&self) -> CoalescingStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoalescingStats
impl Debug for CoalescingStats
Source§impl Default for CoalescingStats
impl Default for CoalescingStats
Source§fn default() -> CoalescingStats
fn default() -> CoalescingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoalescingStats
impl RefUnwindSafe for CoalescingStats
impl Send for CoalescingStats
impl Sync for CoalescingStats
impl Unpin for CoalescingStats
impl UnsafeUnpin for CoalescingStats
impl UnwindSafe for CoalescingStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more