Struct amethyst_assets::ProgressCounter
[−]
[src]
pub struct ProgressCounter { /* fields omitted */ }
A progress tracker which is passed to the Loader
in order to check how many assets are loaded.
Methods
impl ProgressCounter
[src]
pub fn new() -> Self
[src]
Creates a new Progress
struct.
pub fn errors(&self) -> Vec<Error>
[src]
Removes all errors and returns them.
pub fn num_assets(&self) -> usize
[src]
Returns the number of assets this struct is tracking.
pub fn num_failed(&self) -> usize
[src]
Returns the number of assets that have failed.
pub fn num_loading(&self) -> usize
[src]
Returns the number of assets that are still loading.
pub fn num_finished(&self) -> usize
[src]
Returns the number of assets this struct is tracking.
pub fn complete(&self) -> Completion
[src]
Returns Completion::Complete
if all tracked assets are finished.
pub fn is_complete(&self) -> bool
[src]
Returns true
if all assets have been imported without error.
Trait Implementations
impl Default for ProgressCounter
[src]
fn default() -> ProgressCounter
[src]
Returns the "default value" for a type. Read more
impl<'a> Progress for &'a mut ProgressCounter
[src]
type Tracker = ProgressCounterTracker
The tracker this progress can create.
fn add_assets(&mut self, num: usize)
[src]
Add num
assets to the progress. This should be done whenever a new asset is put in the queue. Read more
fn create_tracker(self) -> Self::Tracker
[src]
Creates a Tracker
.