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.
ReloadIds are only meaningful when compared to other ReloadIds 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 PartialOrd for ReloadId
impl PartialOrd for ReloadId
impl 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.