pub struct LoadingStats {
pub chunks_loaded: usize,
pub bytes_loaded: u64,
pub cache_hits: usize,
pub cache_misses: usize,
pub total_load_time: Duration,
pub avg_chunk_load_time: Duration,
pub prefetch_hits: usize,
pub prefetch_misses: usize,
}Expand description
Statistics for progressive loading
Fields§
§chunks_loaded: usizeTotal chunks loaded
bytes_loaded: u64Total bytes loaded
cache_hits: usizeCache hits (chunks already loaded)
cache_misses: usizeCache misses (chunks needed to be loaded)
total_load_time: DurationTotal loading time
avg_chunk_load_time: DurationAverage chunk load time
prefetch_hits: usizeNumber of prefetched chunks that were used
prefetch_misses: usizeNumber of prefetched chunks that were wasted
Trait Implementations§
Source§impl Clone for LoadingStats
impl Clone for LoadingStats
Source§fn clone(&self) -> LoadingStats
fn clone(&self) -> LoadingStats
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 LoadingStats
impl Debug for LoadingStats
Source§impl Default for LoadingStats
impl Default for LoadingStats
Source§fn default() -> LoadingStats
fn default() -> LoadingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadingStats
impl RefUnwindSafe for LoadingStats
impl Send for LoadingStats
impl Sync for LoadingStats
impl Unpin for LoadingStats
impl UnwindSafe for LoadingStats
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