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]
impl ProgressCounterpub fn new() -> Self[src]
pub fn new() -> SelfCreates a new Progress struct.
pub fn errors(&self) -> Vec<AssetErrorMeta>[src]
pub fn errors(&self) -> Vec<AssetErrorMeta>Removes all errors and returns them.
pub fn num_assets(&self) -> usize[src]
pub fn num_assets(&self) -> usizeReturns the number of assets this struct is tracking.
pub fn num_failed(&self) -> usize[src]
pub fn num_failed(&self) -> usizeReturns the number of assets that have failed.
pub fn num_loading(&self) -> usize[src]
pub fn num_loading(&self) -> usizeReturns the number of assets that are still loading.
pub fn num_finished(&self) -> usize[src]
pub fn num_finished(&self) -> usizeReturns the number of assets this struct is tracking.
pub fn complete(&self) -> Completion[src]
pub fn complete(&self) -> CompletionReturns Completion::Complete if all tracked assets are finished.
pub fn is_complete(&self) -> bool[src]
pub fn is_complete(&self) -> boolReturns true if all assets have been imported without error.
Trait Implementations
impl Default for ProgressCounter[src]
impl Default for ProgressCounterfn default() -> ProgressCounter[src]
fn default() -> ProgressCounterReturns the "default value" for a type. Read more
impl<'a> Progress for &'a mut ProgressCounter[src]
impl<'a> Progress for &'a mut ProgressCountertype Tracker = ProgressCounterTracker
The tracker this progress can create.
fn add_assets(&mut self, num: usize)[src]
fn add_assets(&mut self, num: usize)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]
fn create_tracker(self) -> Self::TrackerCreates a Tracker.
Auto Trait Implementations
impl Send for ProgressCounter
impl Send for ProgressCounterimpl Sync for ProgressCounter
impl Sync for ProgressCounter