Struct js::jsapi::AutoSetAsyncStackForNewCalls [] [src]

#[repr(C)]
pub struct AutoSetAsyncStackForNewCalls { pub cx: *mut JSContext, pub oldAsyncStack: RootedObject, pub oldAsyncCause: *const c_char, pub oldAsyncCallIsExplicit: bool, }

This class can be used to store a pointer to the youngest frame of a saved stack in the specified JSContext. This reference will be picked up by any new calls performed until the class is destroyed, with the specified asyncCause, that must not be empty.

Any stack capture initiated during these new calls will go through the async stack instead of the current stack.

Capturing the stack before a new call is performed will not be affected.

The provided chain of SavedFrame objects can live in any compartment, although it will be copied to the compartment where the stack is captured.

See also js/src/doc/SavedFrame/SavedFrame.md for documentation on async stack frames.

Fields

Trait Implementations

impl Debug for AutoSetAsyncStackForNewCalls
[src]

[src]

Formats the value using the given formatter.