pub(crate) type UnderlyingSourceStartCallback = UnderlyingSourceStartCallback<DomTypeHolder>;
Aliased Type§
struct UnderlyingSourceStartCallback {
pub(crate) parent: CallbackFunction<DomTypeHolder>,
}
Fields§
§parent: CallbackFunction<DomTypeHolder>
Implementations
Source§impl<D: DomTypes> UnderlyingSourceStartCallback<D>
impl<D: DomTypes> UnderlyingSourceStartCallback<D>
pub(crate) unsafe fn new( aCx: SafeJSContext, aCallback: *mut JSObject, ) -> Rc<UnderlyingSourceStartCallback<D>>
pub fn Call_<T: ThisReflector>( &self, thisObj: &T, controller: ReadableStreamDefaultControllerOrReadableByteStreamController<D>, rval: MutableHandleValue<'_>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Fallible<()>
pub fn Call__( &self, controller: ReadableStreamDefaultControllerOrReadableByteStreamController<D>, rval: MutableHandleValue<'_>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Fallible<()>
unsafe fn Call( &self, cx: SafeJSContext, aThisObj: HandleValue<'_>, controller: ReadableStreamDefaultControllerOrReadableByteStreamController<D>, rval: MutableHandleValue<'_>, can_gc: CanGc, ) -> Fallible<()>
Trait Implementations
Source§impl<D: DomTypes> CallbackContainer<D> for UnderlyingSourceStartCallback<D>
impl<D: DomTypes> CallbackContainer<D> for UnderlyingSourceStartCallback<D>
Source§unsafe fn new(
cx: SafeJSContext,
callback: *mut JSObject,
) -> Rc<UnderlyingSourceStartCallback<D>>
unsafe fn new( cx: SafeJSContext, callback: *mut JSObject, ) -> Rc<UnderlyingSourceStartCallback<D>>
Create a new CallbackContainer object for the given
JSObject
.Source§fn callback_holder(&self) -> &CallbackObject<D>
fn callback_holder(&self) -> &CallbackObject<D>
Returns the underlying
CallbackObject
.Source§fn incumbent(&self) -> Option<&D::GlobalScope>
fn incumbent(&self) -> Option<&D::GlobalScope>
Returns the “callback context”, that is, the global to use as
incumbent global when calling the callback.
Source§impl<D: PartialEq + DomTypes> PartialEq for UnderlyingSourceStartCallback<D>
impl<D: PartialEq + DomTypes> PartialEq for UnderlyingSourceStartCallback<D>
Source§fn eq(&self, other: &UnderlyingSourceStartCallback<D>) -> bool
fn eq(&self, other: &UnderlyingSourceStartCallback<D>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.