Skip to main content

PerformanceObserverMethods

pub trait PerformanceObserverMethods<D: DomTypes> {
    // Required methods
    fn Observe(
        &self,
        cx: &mut JSContext,
        options: &PerformanceObserverInit,
    ) -> Fallible<()>;
    fn Disconnect(&self, cx: &mut JSContext);
    fn TakeRecords(&self) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ;
    fn SupportedEntryTypes(
        cx: &mut JSContext,
        global: &D::GlobalScope,
        retval: MutableHandle<'_, Value>,
    );
    fn Constructor(
        cx: &mut JSContext,
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        callback: RootedCallback<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§