pub(crate) type AnyCallback = AnyCallback<DomTypeHolder>;
Aliased Type§
struct AnyCallback {
pub parent: CallbackFunction<DomTypeHolder>,
}
Fields§
§parent: CallbackFunction<DomTypeHolder>
Implementations
Source§impl<D> AnyCallback<D>where
D: DomTypes,
impl<D> AnyCallback<D>where
D: DomTypes,
pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<AnyCallback<D>>
pub fn Call_<T>(
&self,
thisObj: &T,
value: Handle<'_, Value>,
rval: MutableHandle<'_, Value>,
aExceptionHandling: ExceptionHandling,
can_gc: CanGc,
) -> Result<(), Error>where
T: ThisReflector,
pub fn Call__( &self, value: Handle<'_, Value>, rval: MutableHandle<'_, Value>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<(), Error>
Trait Implementations
Source§impl<D> CallbackContainer<D> for AnyCallback<D>where
D: DomTypes,
impl<D> CallbackContainer<D> for AnyCallback<D>where
D: DomTypes,
Source§unsafe fn new(cx: JSContext, callback: *mut JSObject) -> Rc<AnyCallback<D>>
unsafe fn new(cx: JSContext, callback: *mut JSObject) -> Rc<AnyCallback<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.