pub struct UnderlyingSourcePullCallback<D>where
D: DomTypes,{
pub parent: CallbackFunction<D>,
}
Fields§
§parent: CallbackFunction<D>
Implementations§
Source§impl<D> UnderlyingSourcePullCallback<D>where
D: DomTypes,
impl<D> UnderlyingSourcePullCallback<D>where
D: DomTypes,
pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<UnderlyingSourcePullCallback<D>>
pub fn Call_<T>(
&self,
thisObj: &T,
controller: ReadableStreamDefaultControllerOrReadableByteStreamController<D>,
aExceptionHandling: ExceptionHandling,
can_gc: CanGc,
) -> Result<Rc<<D as DomTypes>::Promise>, Error>where
T: ThisReflector,
pub fn Call__( &self, controller: ReadableStreamDefaultControllerOrReadableByteStreamController<D>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<Rc<<D as DomTypes>::Promise>, Error>
Trait Implementations§
Source§impl<D> CallbackContainer<D> for UnderlyingSourcePullCallback<D>where
D: DomTypes,
impl<D> CallbackContainer<D> for UnderlyingSourcePullCallback<D>where
D: DomTypes,
Source§unsafe fn new(
cx: JSContext,
callback: *mut JSObject,
) -> Rc<UnderlyingSourcePullCallback<D>>
unsafe fn new( cx: JSContext, callback: *mut JSObject, ) -> Rc<UnderlyingSourcePullCallback<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 UnderlyingSourcePullCallback<D>
impl<D> PartialEq for UnderlyingSourcePullCallback<D>
Source§fn eq(&self, other: &UnderlyingSourcePullCallback<D>) -> bool
fn eq(&self, other: &UnderlyingSourcePullCallback<D>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<D> ToJSValConvertible for UnderlyingSourcePullCallback<D>where
D: DomTypes,
impl<D> ToJSValConvertible for UnderlyingSourcePullCallback<D>where
D: DomTypes,
Source§impl<D> Traceable for UnderlyingSourcePullCallback<D>
impl<D> Traceable for UnderlyingSourcePullCallback<D>
impl<D> StructuralPartialEq for UnderlyingSourcePullCallback<D>where
D: DomTypes,
Auto Trait Implementations§
impl<D> !Freeze for UnderlyingSourcePullCallback<D>
impl<D> !RefUnwindSafe for UnderlyingSourcePullCallback<D>
impl<D> !Send for UnderlyingSourcePullCallback<D>
impl<D> !Sync for UnderlyingSourcePullCallback<D>
impl<D> Unpin for UnderlyingSourcePullCallback<D>
impl<D> UnwindSafe for UnderlyingSourcePullCallback<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert