pub enum StreamPriority {
Low = 0,
Normal = 1,
High = 2,
Critical = 3,
}Expand description
Priority level for streaming allocations.
Variants§
Low = 0
Can be evicted immediately under pressure
Normal = 1
Normal priority
High = 2
High priority, evict last
Critical = 3
Critical, never evict automatically
Trait Implementations§
Source§impl Clone for StreamPriority
impl Clone for StreamPriority
Source§fn clone(&self) -> StreamPriority
fn clone(&self) -> StreamPriority
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 StreamPriority
impl Debug for StreamPriority
Source§impl Default for StreamPriority
impl Default for StreamPriority
Source§impl Ord for StreamPriority
impl Ord for StreamPriority
Source§fn cmp(&self, other: &StreamPriority) -> Ordering
fn cmp(&self, other: &StreamPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamPriority
impl PartialEq for StreamPriority
Source§impl PartialOrd for StreamPriority
impl PartialOrd for StreamPriority
impl Copy for StreamPriority
impl Eq for StreamPriority
impl StructuralPartialEq for StreamPriority
Auto Trait Implementations§
impl Freeze for StreamPriority
impl RefUnwindSafe for StreamPriority
impl Send for StreamPriority
impl Sync for StreamPriority
impl Unpin for StreamPriority
impl UnwindSafe for StreamPriority
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