pub(crate) type MutationCallback = MutationCallback<DomTypeHolder>;
Aliased Type§
struct MutationCallback {
pub parent: CallbackFunction<DomTypeHolder>,
}
Fields§
§parent: CallbackFunction<DomTypeHolder>
Implementations
Source§impl<D> MutationCallback<D>where
D: DomTypes,
impl<D> MutationCallback<D>where
D: DomTypes,
pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<MutationCallback<D>>
pub fn Call_<T>(
&self,
thisObj: &T,
mutations: Vec<Root<Dom<<D as DomTypes>::MutationRecord>>>,
observer: &<D as DomTypes>::MutationObserver,
aExceptionHandling: ExceptionHandling,
can_gc: CanGc,
) -> Result<(), Error>where
T: ThisReflector,
pub fn Call__( &self, mutations: Vec<Root<Dom<<D as DomTypes>::MutationRecord>>>, observer: &<D as DomTypes>::MutationObserver, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<(), Error>
Trait Implementations
Source§impl<D> CallbackContainer<D> for MutationCallback<D>where
D: DomTypes,
impl<D> CallbackContainer<D> for MutationCallback<D>where
D: DomTypes,
Source§unsafe fn new(cx: JSContext, callback: *mut JSObject) -> Rc<MutationCallback<D>>
unsafe fn new(cx: JSContext, callback: *mut JSObject) -> Rc<MutationCallback<D>>
Create a new CallbackContainer object for the given
JSObject
. Read moreSource§fn callback_holder(&self) -> &CallbackObject<D>
fn callback_holder(&self) -> &CallbackObject<D>
Returns the underlying
CallbackObject
.Source§fn incumbent(&self) -> Option<&<D as DomTypes>::GlobalScope>
fn incumbent(&self) -> Option<&<D as DomTypes>::GlobalScope>
Returns the “callback context”, that is, the global to use as
incumbent global when calling the callback.