Struct bones_asset::prelude::AssetLoadProgress
source · pub struct AssetLoadProgress { /* private fields */ }
Expand description
The progress that has been made loading the game assets.
Implementations§
source§impl AssetLoadProgress
impl AssetLoadProgress
sourcepub fn inc_to_load(&self)
pub fn inc_to_load(&self)
Increment the number of assets that need to be loaded by one.
sourcepub fn inc_errored(&self)
pub fn inc_errored(&self)
Increment the number of assets that have errored during loading.
sourcepub fn inc_downloaded(&self)
pub fn inc_downloaded(&self)
Increment the number of assets that have been downloaded by one.
sourcepub fn inc_loaded(&self)
pub fn inc_loaded(&self)
Increment the number of assets that have been loaded by one.
sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Get whether or not all the assets are done loading.
Note: Assets that have errored while loading are still counted as “done loading”.
sourcepub fn loaded(&self) -> u32
pub fn loaded(&self) -> u32
Get the number of assets that have been downloaded and loaded by their asset loaders.
sourcepub fn to_load(&self) -> u32
pub fn to_load(&self) -> u32
Get the number of assets that must be loaded.
Since assets are discovered as they are loaded this number may not be the final asset count and may increase as more assets are discovered.
sourcepub fn downloaded(&self) -> u32
pub fn downloaded(&self) -> u32
Get the number of assets that have had their data downloaded. Once an asset is downloaded we have the raw bytes, but it may not have been processed by it’s asset loader.
Trait Implementations§
source§impl Clone for AssetLoadProgress
impl Clone for AssetLoadProgress
source§fn clone(&self) -> AssetLoadProgress
fn clone(&self) -> AssetLoadProgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssetLoadProgress
impl Debug for AssetLoadProgress
source§impl Default for AssetLoadProgress
impl Default for AssetLoadProgress
source§fn default() -> AssetLoadProgress
fn default() -> AssetLoadProgress
Auto Trait Implementations§
impl Freeze for AssetLoadProgress
impl RefUnwindSafe for AssetLoadProgress
impl Send for AssetLoadProgress
impl Sync for AssetLoadProgress
impl Unpin for AssetLoadProgress
impl UnwindSafe for AssetLoadProgress
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)