pub enum MemoryAction {
None,
EnforceBudget,
Trim {
scope: CacheScope,
target_bytes: usize,
},
}Variants§
Implementations§
Source§impl MemoryAction
impl MemoryAction
pub const fn trim(scope: CacheScope, target_bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for MemoryAction
impl Clone for MemoryAction
Source§fn clone(&self) -> MemoryAction
fn clone(&self) -> MemoryAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryAction
Source§impl Debug for MemoryAction
impl Debug for MemoryAction
Source§impl Default for MemoryAction
impl Default for MemoryAction
Source§fn default() -> MemoryAction
fn default() -> MemoryAction
Returns the “default value” for a type. Read more
impl Eq for MemoryAction
Source§impl Hash for MemoryAction
impl Hash for MemoryAction
Source§impl PartialEq for MemoryAction
impl PartialEq for MemoryAction
impl StructuralPartialEq for MemoryAction
Auto Trait Implementations§
impl Freeze for MemoryAction
impl RefUnwindSafe for MemoryAction
impl Send for MemoryAction
impl Sync for MemoryAction
impl Unpin for MemoryAction
impl UnsafeUnpin for MemoryAction
impl UnwindSafe for MemoryAction
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