#[repr(C)]pub enum MemoryPressureLevel {
None = 0,
Moderate = 1,
Critical = 2,
}Expand description
Memory pressure level for the MemoryPressureNotification. None hints V8 that there is no memory pressure. Moderate hints V8 to speed up incremental garbage collection at the cost of higher latency due to garbage collection pauses. Critical hints V8 to free memory as soon as possible. Garbage collection pauses at this level will be large.
Variants§
Trait Implementations§
Source§impl Clone for MemoryPressureLevel
impl Clone for MemoryPressureLevel
Source§fn clone(&self) -> MemoryPressureLevel
fn clone(&self) -> MemoryPressureLevel
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 MemoryPressureLevel
impl Debug for MemoryPressureLevel
Source§impl PartialEq for MemoryPressureLevel
impl PartialEq for MemoryPressureLevel
impl Copy for MemoryPressureLevel
impl Eq for MemoryPressureLevel
impl StructuralPartialEq for MemoryPressureLevel
Auto Trait Implementations§
impl Freeze for MemoryPressureLevel
impl RefUnwindSafe for MemoryPressureLevel
impl Send for MemoryPressureLevel
impl Sync for MemoryPressureLevel
impl Unpin for MemoryPressureLevel
impl UnwindSafe for MemoryPressureLevel
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