script::dom::bindings::codegen::Bindings::UnderlyingSourceBinding

Type Alias UnderlyingSourceCancelCallback

Source
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,

Source

pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<UnderlyingSourceCancelCallback<D>>

Source

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,

Source

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,

Source§

unsafe fn new( cx: JSContext, callback: *mut JSObject, ) -> Rc<UnderlyingSourceCancelCallback<D>>

Create a new CallbackContainer object for the given JSObject. Read more
Source§

fn callback_holder(&self) -> &CallbackObject<D>

Returns the underlying CallbackObject.
Source§

fn callback(&self) -> *mut JSObject

Returns the underlying JSObject.
Source§

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>
where D: PartialEq + DomTypes,

Source§

fn eq(&self, other: &UnderlyingSourceCancelCallback<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D> ToJSValConvertible for UnderlyingSourceCancelCallback<D>
where D: DomTypes,

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<D> Traceable for UnderlyingSourceCancelCallback<D>
where D: DomTypes + Traceable,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl<D> StructuralPartialEq for UnderlyingSourceCancelCallback<D>
where D: DomTypes,