pub struct ProgressCounter { /* private fields */ }
Expand description

A progress tracker which is passed to the Loader in order to check how many assets are loaded.

Implementations

Creates a new Progress struct.

Removes all errors and returns them.

Returns the number of assets this struct is tracking.

Returns the number of assets that have failed.

Returns the number of assets that are still loading.

Returns the number of assets this struct is tracking.

Returns Completion::Complete if all tracked assets are finished.

Returns true if all assets have been imported without error.

Trait Implementations

Returns the “default value” for a type. Read more
The tracker this progress can create.
Add num assets to the progress. This should be done whenever a new asset is put in the queue. Read more
Creates a Tracker.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Tries to create the default.
Calls try_default and panics on an error case.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.