pub struct StreamingStats {
pub budget: usize,
pub total_reserved: usize,
pub total_loaded: usize,
pub allocation_count: usize,
pub reserved_count: usize,
pub loading_count: usize,
pub ready_count: usize,
}Expand description
Statistics about streaming allocations.
Fields§
§budget: usizeTotal budget
total_reserved: usizeTotal reserved bytes
total_loaded: usizeTotal loaded bytes
allocation_count: usizeNumber of active allocations
reserved_count: usizeAllocations in Reserved state
loading_count: usizeAllocations in Loading state
ready_count: usizeAllocations in Ready state
Implementations§
Source§impl StreamingStats
impl StreamingStats
Sourcepub fn utilization_percent(&self) -> f64
pub fn utilization_percent(&self) -> f64
Calculate budget utilization percentage.
Sourcepub fn load_progress_percent(&self) -> f64
pub fn load_progress_percent(&self) -> f64
Calculate load progress percentage.
Trait Implementations§
Source§impl Clone for StreamingStats
impl Clone for StreamingStats
Source§fn clone(&self) -> StreamingStats
fn clone(&self) -> StreamingStats
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 StreamingStats
impl Debug for StreamingStats
Source§impl Default for StreamingStats
impl Default for StreamingStats
Source§fn default() -> StreamingStats
fn default() -> StreamingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingStats
impl RefUnwindSafe for StreamingStats
impl Send for StreamingStats
impl Sync for StreamingStats
impl Unpin for StreamingStats
impl UnwindSafe for StreamingStats
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