pub struct CallbackObject<D>where
D: DomTypes,{
callback: Heap<*mut JSObject>,
incumbent: Option<Dom<<D as DomTypes>::GlobalScope>>,
}Expand description
A common base class for representing IDL callback function and callback interface types.
Fields§
§callback: Heap<*mut JSObject>§incumbent: Option<Dom<<D as DomTypes>::GlobalScope>>Implementations§
Trait Implementations§
Source§impl<'a, D> From<&'a CallbackObject<D>> for BlobCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for BlobCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> BlobCallback<D>
fn from(base: &'a CallbackObject<D>) -> BlobCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CallbackFunction<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CallbackFunction<D>where
D: DomTypes,
Source§fn from(object: &'a CallbackObject<D>) -> CallbackFunction<D>
fn from(object: &'a CallbackObject<D>) -> CallbackFunction<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CallbackInterface<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CallbackInterface<D>where
D: DomTypes,
Source§fn from(object: &'a CallbackObject<D>) -> CallbackInterface<D>
fn from(object: &'a CallbackObject<D>) -> CallbackInterface<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CreateHTMLCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CreateHTMLCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> CreateHTMLCallback<D>
fn from(base: &'a CallbackObject<D>) -> CreateHTMLCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CreateScriptCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CreateScriptCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> CreateScriptCallback<D>
fn from(base: &'a CallbackObject<D>) -> CreateScriptCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CreateScriptURLCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CreateScriptURLCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> CreateScriptURLCallback<D>
fn from(base: &'a CallbackObject<D>) -> CreateScriptURLCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for CustomElementConstructor<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for CustomElementConstructor<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> CustomElementConstructor<D>
fn from(base: &'a CallbackObject<D>) -> CustomElementConstructor<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for DecodeErrorCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for DecodeErrorCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> DecodeErrorCallback<D>
fn from(base: &'a CallbackObject<D>) -> DecodeErrorCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for DecodeSuccessCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for DecodeSuccessCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> DecodeSuccessCallback<D>
fn from(base: &'a CallbackObject<D>) -> DecodeSuccessCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for ErrorCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for ErrorCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> ErrorCallback<D>
fn from(base: &'a CallbackObject<D>) -> ErrorCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for EventHandlerNonNull<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for EventHandlerNonNull<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> EventHandlerNonNull<D>
fn from(base: &'a CallbackObject<D>) -> EventHandlerNonNull<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for EventListener<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for EventListener<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> EventListener<D>
fn from(base: &'a CallbackObject<D>) -> EventListener<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for FileCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for FileCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> FileCallback<D>
fn from(base: &'a CallbackObject<D>) -> FileCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for FileSystemEntriesCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for FileSystemEntriesCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> FileSystemEntriesCallback<D>
fn from(base: &'a CallbackObject<D>) -> FileSystemEntriesCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for FileSystemEntryCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for FileSystemEntryCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> FileSystemEntryCallback<D>
fn from(base: &'a CallbackObject<D>) -> FileSystemEntryCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for FrameRequestCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for FrameRequestCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> FrameRequestCallback<D>
fn from(base: &'a CallbackObject<D>) -> FrameRequestCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for Function<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for Function<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> Function<D>
fn from(base: &'a CallbackObject<D>) -> Function<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for FunctionStringCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for FunctionStringCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> FunctionStringCallback<D>
fn from(base: &'a CallbackObject<D>) -> FunctionStringCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for IntersectionObserverCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for IntersectionObserverCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> IntersectionObserverCallback<D>
fn from(base: &'a CallbackObject<D>) -> IntersectionObserverCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for MediaSessionActionHandler<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for MediaSessionActionHandler<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> MediaSessionActionHandler<D>
fn from(base: &'a CallbackObject<D>) -> MediaSessionActionHandler<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for MutationCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for MutationCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> MutationCallback<D>
fn from(base: &'a CallbackObject<D>) -> MutationCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for NodeFilter<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for NodeFilter<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> NodeFilter<D>
fn from(base: &'a CallbackObject<D>) -> NodeFilter<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for NotificationPermissionCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for NotificationPermissionCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> NotificationPermissionCallback<D>
fn from(base: &'a CallbackObject<D>) -> NotificationPermissionCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for OnBeforeUnloadEventHandlerNonNull<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for OnBeforeUnloadEventHandlerNonNull<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> OnBeforeUnloadEventHandlerNonNull<D>
fn from(base: &'a CallbackObject<D>) -> OnBeforeUnloadEventHandlerNonNull<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for OnErrorEventHandlerNonNull<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for OnErrorEventHandlerNonNull<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> OnErrorEventHandlerNonNull<D>
fn from(base: &'a CallbackObject<D>) -> OnErrorEventHandlerNonNull<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for PerformanceObserverCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for PerformanceObserverCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> PerformanceObserverCallback<D>
fn from(base: &'a CallbackObject<D>) -> PerformanceObserverCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for PositionCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for PositionCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> PositionCallback<D>
fn from(base: &'a CallbackObject<D>) -> PositionCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for PositionErrorCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for PositionErrorCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> PositionErrorCallback<D>
fn from(base: &'a CallbackObject<D>) -> PositionErrorCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for QueuingStrategySize<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for QueuingStrategySize<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> QueuingStrategySize<D>
fn from(base: &'a CallbackObject<D>) -> QueuingStrategySize<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for ReportingObserverCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for ReportingObserverCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> ReportingObserverCallback<D>
fn from(base: &'a CallbackObject<D>) -> ReportingObserverCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for ResizeObserverCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for ResizeObserverCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> ResizeObserverCallback<D>
fn from(base: &'a CallbackObject<D>) -> ResizeObserverCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for SimpleCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for SimpleCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> SimpleCallback<D>
fn from(base: &'a CallbackObject<D>) -> SimpleCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for TransformerCancelCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for TransformerCancelCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> TransformerCancelCallback<D>
fn from(base: &'a CallbackObject<D>) -> TransformerCancelCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for TransformerFlushCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for TransformerFlushCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> TransformerFlushCallback<D>
fn from(base: &'a CallbackObject<D>) -> TransformerFlushCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for TransformerStartCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for TransformerStartCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> TransformerStartCallback<D>
fn from(base: &'a CallbackObject<D>) -> TransformerStartCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for TransformerTransformCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for TransformerTransformCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> TransformerTransformCallback<D>
fn from(base: &'a CallbackObject<D>) -> TransformerTransformCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkAbortCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkAbortCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkAbortCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkAbortCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkCloseCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkCloseCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkCloseCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkCloseCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkStartCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkStartCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkStartCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkStartCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkWriteCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSinkWriteCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkWriteCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSinkWriteCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourceCancelCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourceCancelCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSourceCancelCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSourceCancelCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourcePullCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourcePullCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSourcePullCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSourcePullCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourceStartCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for UnderlyingSourceStartCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> UnderlyingSourceStartCallback<D>
fn from(base: &'a CallbackObject<D>) -> UnderlyingSourceStartCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for VoidFunction<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for VoidFunction<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> VoidFunction<D>
fn from(base: &'a CallbackObject<D>) -> VoidFunction<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for XPathNSResolver<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for XPathNSResolver<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> XPathNSResolver<D>
fn from(base: &'a CallbackObject<D>) -> XPathNSResolver<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for XRFrameRequestCallback<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for XRFrameRequestCallback<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> XRFrameRequestCallback<D>
fn from(base: &'a CallbackObject<D>) -> XRFrameRequestCallback<D>
Converts to this type from the input type.
Source§impl<'a, D> From<&'a CallbackObject<D>> for callbackWithOnlyOneOptionalArg<D>where
D: DomTypes,
impl<'a, D> From<&'a CallbackObject<D>> for callbackWithOnlyOneOptionalArg<D>where
D: DomTypes,
Source§fn from(base: &'a CallbackObject<D>) -> callbackWithOnlyOneOptionalArg<D>
fn from(base: &'a CallbackObject<D>) -> callbackWithOnlyOneOptionalArg<D>
Converts to this type from the input type.
Source§impl<D> MallocSizeOf for CallbackObject<D>where
D: DomTypes + MallocSizeOf,
impl<D> MallocSizeOf for CallbackObject<D>where
D: DomTypes + MallocSizeOf,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl<D> PartialEq for CallbackObject<D>where
D: DomTypes,
impl<D> PartialEq for CallbackObject<D>where
D: DomTypes,
Source§fn eq(&self, other: &CallbackObject<D>) -> bool
fn eq(&self, other: &CallbackObject<D>) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl<D> !Freeze for CallbackObject<D>
impl<D> !RefUnwindSafe for CallbackObject<D>
impl<D> !Send for CallbackObject<D>
impl<D> !Sync for CallbackObject<D>
impl<D> Unpin for CallbackObject<D>
impl<D> UnsafeUnpin for CallbackObject<D>
impl<D> UnwindSafe for CallbackObject<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> 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