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

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§