Enum mozjs_sys::jsapi::JS::GCReason

source ·
#[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§

source§

impl GCReason

source

pub const DOM_WINDOW_UTILS: GCReason = GCReason::FIRST_FIREFOX_REASON

source§

impl GCReason

source

pub const RESERVED1: GCReason = GCReason::FIRST_RESERVED_REASON

source§

impl GCReason

source

pub const NUM_TELEMETRY_REASONS: GCReason = GCReason::NUM_REASONS

Trait Implementations§

source§

impl Clone for GCReason

source§

fn clone(&self) -> GCReason

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GCReason

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for GCReason

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for GCReason

source§

fn eq(&self, other: &GCReason) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for GCReason

source§

impl Eq for GCReason

source§

impl StructuralPartialEq for GCReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Filterable for T

source§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T