pub enum AssetState {
Loading,
Loaded,
Error,
}Expand description
Represents the loading state of an asset in the cache.
Variants§
Loading
The asset has been requested but is still loading.
Loaded
The asset has been successfully loaded and is ready for use.
Error
The asset failed to load.
Trait Implementations§
Source§impl Clone for AssetState
impl Clone for AssetState
Source§fn clone(&self) -> AssetState
fn clone(&self) -> AssetState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssetState
Source§impl Debug for AssetState
impl Debug for AssetState
Source§impl Default for AssetState
impl Default for AssetState
Source§fn default() -> AssetState
fn default() -> AssetState
Returns the “default value” for a type. Read more
impl Eq for AssetState
Source§impl PartialEq for AssetState
impl PartialEq for AssetState
Source§fn eq(&self, other: &AssetState) -> bool
fn eq(&self, other: &AssetState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetState
Auto Trait Implementations§
impl Freeze for AssetState
impl RefUnwindSafe for AssetState
impl Send for AssetState
impl Sync for AssetState
impl Unpin for AssetState
impl UnsafeUnpin for AssetState
impl UnwindSafe for AssetState
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
Mutably borrows from an owned value. Read more