#[repr(u8)]pub enum DurabilityLevel {
Volatile = 0,
Transient = 1,
Stable = 2,
Static = 3,
}Expand description
Durability levels for dependency tracking optimization.
Higher values indicate the data changes less frequently. Durability is specified when resolving assets, not on the type itself.
Variants§
Volatile = 0
Changes frequently (user input, live feeds).
Transient = 1
Changes occasionally (configuration, session data).
Stable = 2
Changes rarely (external dependencies).
Static = 3
Fixed for this session (bundled assets, constants).
Implementations§
Trait Implementations§
Source§impl Clone for DurabilityLevel
impl Clone for DurabilityLevel
Source§fn clone(&self) -> DurabilityLevel
fn clone(&self) -> DurabilityLevel
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 Debug for DurabilityLevel
impl Debug for DurabilityLevel
Source§impl Default for DurabilityLevel
impl Default for DurabilityLevel
Source§fn default() -> DurabilityLevel
fn default() -> DurabilityLevel
Returns the “default value” for a type. Read more
Source§impl Hash for DurabilityLevel
impl Hash for DurabilityLevel
Source§impl PartialEq for DurabilityLevel
impl PartialEq for DurabilityLevel
impl Copy for DurabilityLevel
impl Eq for DurabilityLevel
impl StructuralPartialEq for DurabilityLevel
Auto Trait Implementations§
impl Freeze for DurabilityLevel
impl RefUnwindSafe for DurabilityLevel
impl Send for DurabilityLevel
impl Sync for DurabilityLevel
impl Unpin for DurabilityLevel
impl UnwindSafe for DurabilityLevel
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.