pub struct LoadingStats {
pub phase: LoadPhase,
pub geometry_total: usize,
pub geometry_uploaded: usize,
pub textures_total: usize,
pub textures_uploaded: usize,
pub pipelines_pending: usize,
pub pipelines_ready: usize,
pub pipelines_failed: usize,
pub in_flight_subcompiles: u32,
}Expand description
Snapshot of a load transaction’s progress. Reported by commit_load’s
on_progress (live, per resolution) and by loading_stats() (imperative poll).
Fields§
§phase: LoadPhaseCurrent commit phase.
geometry_total: usizeTotal geometries whose representations this commit will (re)build.
geometry_uploaded: usizeGeometries resolved (representations uploaded) so far.
textures_total: usizeTotal textures the pool will upload this commit.
textures_uploaded: usizeTextures uploaded so far.
pipelines_pending: usizeMaterials still compiling (CompileProgress::materials_pending).
pipelines_ready: usizeMaterials fully resolved (CompileProgress::materials_ready).
pipelines_failed: usizeMaterials whose compile failed (CompileProgress::materials_failed).
in_flight_subcompiles: u32In-flight sub-pipeline compiles summed across pending materials.
Implementations§
Source§impl LoadingStats
impl LoadingStats
Sourcepub fn pipelines_remaining(&self) -> usize
pub fn pipelines_remaining(&self) -> usize
Pipelines still in flight this commit (materials pending + their summed sub-pipeline compiles) — the single “how much compile is left” number.
Sourcepub fn phase_label(&self) -> Option<String>
pub fn phase_label(&self) -> Option<String>
Human-facing progress line for the active commit phase — the SHARED mapping
both viewers’ loading overlays render, so geometry/texture/pipeline progress
reads identically everywhere. None for Idle /
Ready (no banner needed).
Trait Implementations§
Source§impl Clone for LoadingStats
impl Clone for LoadingStats
Source§fn clone(&self) -> LoadingStats
fn clone(&self) -> LoadingStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LoadingStats
Source§impl Debug for LoadingStats
impl Debug for LoadingStats
Source§impl Default for LoadingStats
impl Default for LoadingStats
Source§fn default() -> LoadingStats
fn default() -> LoadingStats
impl Eq for LoadingStats
Source§impl PartialEq for LoadingStats
impl PartialEq for LoadingStats
Source§fn eq(&self, other: &LoadingStats) -> bool
fn eq(&self, other: &LoadingStats) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoadingStats
Auto Trait Implementations§
impl Freeze for LoadingStats
impl RefUnwindSafe for LoadingStats
impl Send for LoadingStats
impl Sync for LoadingStats
impl Unpin for LoadingStats
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().