#[repr(i32)]pub enum GCReason {
Show 68 variants
FIRST_FIREFOX_REASON = 33,
FIRST_RESERVED_REASON = 90,
API = 0,
EAGER_ALLOC_TRIGGER = 1,
DESTROY_RUNTIME = 2,
ROOTS_REMOVED = 3,
LAST_DITCH = 4,
TOO_MUCH_MALLOC = 5,
ALLOC_TRIGGER = 6,
DEBUG_GC = 7,
COMPARTMENT_REVIVED = 8,
RESET = 9,
OUT_OF_NURSERY = 10,
EVICT_NURSERY = 11,
SHARED_MEMORY_LIMIT = 13,
EAGER_NURSERY_COLLECTION = 14,
BG_TASK_FINISHED = 15,
ABORT_GC = 16,
FULL_WHOLE_CELL_BUFFER = 17,
FULL_GENERIC_BUFFER = 18,
FULL_VALUE_BUFFER = 19,
FULL_CELL_PTR_OBJ_BUFFER = 20,
FULL_SLOT_BUFFER = 21,
FULL_SHAPE_BUFFER = 22,
TOO_MUCH_WASM_MEMORY = 23,
DISABLE_GENERATIONAL_GC = 24,
FINISH_GC = 25,
PREPARE_FOR_TRACING = 26,
FULL_WASM_ANYREF_BUFFER = 27,
FULL_CELL_PTR_STR_BUFFER = 28,
TOO_MUCH_JIT_CODE = 29,
FULL_CELL_PTR_BIGINT_BUFFER = 30,
NURSERY_TRAILERS = 31,
NURSERY_MALLOC_BUFFERS = 32,
COMPONENT_UTILS = 34,
MEM_PRESSURE = 35,
CC_FINISHED = 36,
CC_FORCED = 37,
LOAD_END = 38,
UNUSED3 = 39,
PAGE_HIDE = 40,
NSJSCONTEXT_DESTROY = 41,
WORKER_SHUTDOWN = 42,
SET_DOC_SHELL = 43,
DOM_UTILS = 44,
DOM_IPC = 45,
DOM_WORKER = 46,
INTER_SLICE_GC = 47,
UNUSED1 = 48,
FULL_GC_TIMER = 49,
SHUTDOWN_CC = 50,
UNUSED2 = 51,
USER_INACTIVE = 52,
XPCONNECT_SHUTDOWN = 53,
DOCSHELL = 54,
HTML_PARSER = 55,
DOM_TESTUTILS = 56,
PREPARE_FOR_PAGELOAD = 57,
RESERVED2 = 91,
RESERVED3 = 92,
RESERVED4 = 93,
RESERVED5 = 94,
RESERVED6 = 95,
RESERVED7 = 96,
RESERVED8 = 97,
RESERVED9 = 98,
NO_REASON = 99,
NUM_REASONS = 100,
}
Variants§
FIRST_FIREFOX_REASON = 33
FIRST_RESERVED_REASON = 90
API = 0
EAGER_ALLOC_TRIGGER = 1
DESTROY_RUNTIME = 2
ROOTS_REMOVED = 3
LAST_DITCH = 4
TOO_MUCH_MALLOC = 5
ALLOC_TRIGGER = 6
DEBUG_GC = 7
COMPARTMENT_REVIVED = 8
RESET = 9
OUT_OF_NURSERY = 10
EVICT_NURSERY = 11
SHARED_MEMORY_LIMIT = 13
EAGER_NURSERY_COLLECTION = 14
BG_TASK_FINISHED = 15
ABORT_GC = 16
FULL_WHOLE_CELL_BUFFER = 17
FULL_GENERIC_BUFFER = 18
FULL_VALUE_BUFFER = 19
FULL_CELL_PTR_OBJ_BUFFER = 20
FULL_SLOT_BUFFER = 21
FULL_SHAPE_BUFFER = 22
TOO_MUCH_WASM_MEMORY = 23
DISABLE_GENERATIONAL_GC = 24
FINISH_GC = 25
PREPARE_FOR_TRACING = 26
FULL_WASM_ANYREF_BUFFER = 27
FULL_CELL_PTR_STR_BUFFER = 28
TOO_MUCH_JIT_CODE = 29
FULL_CELL_PTR_BIGINT_BUFFER = 30
NURSERY_TRAILERS = 31
NURSERY_MALLOC_BUFFERS = 32
COMPONENT_UTILS = 34
MEM_PRESSURE = 35
CC_FINISHED = 36
CC_FORCED = 37
LOAD_END = 38
UNUSED3 = 39
PAGE_HIDE = 40
NSJSCONTEXT_DESTROY = 41
WORKER_SHUTDOWN = 42
SET_DOC_SHELL = 43
DOM_UTILS = 44
DOM_IPC = 45
DOM_WORKER = 46
INTER_SLICE_GC = 47
UNUSED1 = 48
FULL_GC_TIMER = 49
SHUTDOWN_CC = 50
UNUSED2 = 51
USER_INACTIVE = 52
XPCONNECT_SHUTDOWN = 53
DOCSHELL = 54
HTML_PARSER = 55
DOM_TESTUTILS = 56
PREPARE_FOR_PAGELOAD = 57
RESERVED2 = 91
RESERVED3 = 92
RESERVED4 = 93
RESERVED5 = 94
RESERVED6 = 95
RESERVED7 = 96
RESERVED8 = 97
RESERVED9 = 98
NO_REASON = 99
NUM_REASONS = 100
Implementations§
Trait Implementations§
source§impl PartialEq for GCReason
impl PartialEq for GCReason
impl Copy for GCReason
impl Eq for GCReason
impl StructuralPartialEq for GCReason
Auto Trait Implementations§
impl Freeze for GCReason
impl RefUnwindSafe for GCReason
impl Send for GCReason
impl Sync for GCReason
impl Unpin for GCReason
impl UnwindSafe for GCReason
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert