pub enum LocateResult<A> {
Ready(A),
Pending,
NotFound,
}Expand description
Result of locating an asset.
Variants§
Ready(A)
Asset is immediately available (e.g., from memory cache).
Pending
Asset needs to be loaded asynchronously. The runtime will track this as a pending request.
NotFound
Asset does not exist or cannot be located.
Trait Implementations§
Source§impl<A: Clone> Clone for LocateResult<A>
impl<A: Clone> Clone for LocateResult<A>
Source§fn clone(&self) -> LocateResult<A>
fn clone(&self) -> LocateResult<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug> Debug for LocateResult<A>
impl<A: Debug> Debug for LocateResult<A>
Source§impl<A: PartialEq> PartialEq for LocateResult<A>
impl<A: PartialEq> PartialEq for LocateResult<A>
impl<A: Eq> Eq for LocateResult<A>
impl<A> StructuralPartialEq for LocateResult<A>
Auto Trait Implementations§
impl<A> Freeze for LocateResult<A>where
A: Freeze,
impl<A> RefUnwindSafe for LocateResult<A>where
A: RefUnwindSafe,
impl<A> Send for LocateResult<A>where
A: Send,
impl<A> Sync for LocateResult<A>where
A: Sync,
impl<A> Unpin for LocateResult<A>where
A: Unpin,
impl<A> UnwindSafe for LocateResult<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.