Trait script::dom::bindings::codegen::Bindings::PerformanceObserverBinding::PerformanceObserver_Binding::PerformanceObserverMethods
source · pub trait PerformanceObserverMethods {
// 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§
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>
Object Safety§
This trait is not object safe.