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§
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