pub trait PerformanceObserverMethods<D>where
    D: DomTypes,{
    // Required methods
    fn Observe(&self, options: &PerformanceObserverInit) -> Result<(), Error>;
    fn Disconnect(&self);
    fn TakeRecords(&self) -> Vec<Root<Dom<<D as DomTypes>::PerformanceEntry>>>;
    fn SupportedEntryTypes(
        cx: JSContext,
        global: &<D as DomTypes>::GlobalScope,
        _can_gc: CanGc,
        retval: MutableHandle<'_, Value>,
    );
    fn Constructor(
        global: &<D as DomTypes>::GlobalScope,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        callback: Rc<PerformanceObserverCallback<D>>,
    ) -> Result<Root<Dom<<D as DomTypes>::PerformanceObserver>>, Error>;
}Required Methods§
fn Observe(&self, options: &PerformanceObserverInit) -> Result<(), Error>
fn Disconnect(&self)
fn TakeRecords(&self) -> Vec<Root<Dom<<D as DomTypes>::PerformanceEntry>>>
fn SupportedEntryTypes( cx: JSContext, global: &<D as DomTypes>::GlobalScope, _can_gc: CanGc, retval: MutableHandle<'_, Value>, )
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, callback: Rc<PerformanceObserverCallback<D>>, ) -> Result<Root<Dom<<D as DomTypes>::PerformanceObserver>>, Error>
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.