Struct amethyst_assets::WeakHandle [−][src]
pub struct WeakHandle<A> { /* fields omitted */ }
A weak handle, which is useful if you don't directly need the asset like in caches. This way, the asset can still get dropped (if you want that).
Methods
impl<A> WeakHandle<A>
[src]
impl<A> WeakHandle<A>
pub fn upgrade(&self) -> Option<Handle<A>>
[src]
pub fn upgrade(&self) -> Option<Handle<A>>
Tries to upgrade to a Handle
.
pub fn is_dead(&self) -> bool
[src]
pub fn is_dead(&self) -> bool
Returns true
if the original handle is dead.
Trait Implementations
impl<A> Clone for WeakHandle<A>
[src]
impl<A> Clone for WeakHandle<A>
Auto Trait Implementations
impl<A> Send for WeakHandle<A> where
A: Send,
impl<A> Send for WeakHandle<A> where
A: Send,
impl<A> Sync for WeakHandle<A> where
A: Sync,
impl<A> Sync for WeakHandle<A> where
A: Sync,