pub(crate) trait PerformanceObserverMethods<D: DomTypes> {
    // Required methods
    fn Observe(&self, options: &PerformanceObserverInit) -> Fallible<()>;
    fn Disconnect(&self);
    fn TakeRecords(&self) -> Vec<DomRoot<D::PerformanceEntry>>;
    fn SupportedEntryTypes(
        cx: SafeJSContext,
        global: &D::GlobalScope,
        retval: MutableHandleValue<'_>,
    );
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        callback: Rc<PerformanceObserverCallback<D>>,
    ) -> Fallible<DomRoot<D::PerformanceObserver>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§