pub(crate) type UnderlyingSourceCancelCallback = UnderlyingSourceCancelCallback<DomTypeHolder>;
Aliased Type§
struct UnderlyingSourceCancelCallback {
pub parent: CallbackFunction<DomTypeHolder>,
}
Fields§
§parent: CallbackFunction<DomTypeHolder>
Implementations
Source§impl<D> UnderlyingSourceCancelCallback<D>where
D: DomTypes,
impl<D> UnderlyingSourceCancelCallback<D>where
D: DomTypes,
pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<UnderlyingSourceCancelCallback<D>>
pub fn Call_<T>(
&self,
thisObj: &T,
reason: Option<Handle<'_, Value>>,
aExceptionHandling: ExceptionHandling,
can_gc: CanGc,
) -> Result<Rc<<D as DomTypes>::Promise>, Error>where
T: ThisReflector,
pub fn Call__( &self, reason: Option<Handle<'_, Value>>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<Rc<<D as DomTypes>::Promise>, Error>
Trait Implementations
Source§impl<D> CallbackContainer<D> for UnderlyingSourceCancelCallback<D>where
D: DomTypes,
impl<D> CallbackContainer<D> for UnderlyingSourceCancelCallback<D>where
D: DomTypes,
Source§unsafe fn new(
cx: JSContext,
callback: *mut JSObject,
) -> Rc<UnderlyingSourceCancelCallback<D>>
unsafe fn new( cx: JSContext, callback: *mut JSObject, ) -> Rc<UnderlyingSourceCancelCallback<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.
Source§impl<D> PartialEq for UnderlyingSourceCancelCallback<D>
impl<D> PartialEq for UnderlyingSourceCancelCallback<D>
Source§fn eq(&self, other: &UnderlyingSourceCancelCallback<D>) -> bool
fn eq(&self, other: &UnderlyingSourceCancelCallback<D>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.