Struct assets_manager::ReloadId
source · pub struct ReloadId(/* private fields */);
Expand description
An id to know when an asset is reloaded.
Each time an asset is reloaded, it gets a new ReloadId
that compares
superior to the previous one.
ReloadId
s are only meaningful when compared to other ReloadId
s returned
by the same handle or to ReloadId::NEVER
.
They are useful when you cannot afford the associated lifetime of a
ReloadWatcher
. In this case, you may be interested in using an
AtomicReloadId
.
Implementations§
Trait Implementations§
source§impl Ord for ReloadId
impl Ord for ReloadId
source§impl PartialEq for ReloadId
impl PartialEq for ReloadId
source§impl PartialOrd for ReloadId
impl PartialOrd for ReloadId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ReloadId
impl Eq for ReloadId
impl StructuralPartialEq for ReloadId
Auto Trait Implementations§
impl Freeze for ReloadId
impl RefUnwindSafe for ReloadId
impl Send for ReloadId
impl Sync for ReloadId
impl Unpin for ReloadId
impl UnwindSafe for ReloadId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.