#[repr(u8)]pub enum DurabilityLevel {
Volatile = 0,
Session = 1,
Stable = 2,
Constant = 3,
}Expand description
Named durability levels for assets and queries.
Higher values indicate the data changes less frequently. This is used for optimization in the dependency tracking layer.
Variants§
Volatile = 0
Changes frequently (live feeds, real-time data).
Session = 1
Stable within a session.
Stable = 2
Changes rarely.
Constant = 3
Never changes (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.