pub trait PerformanceMethods<D: DomTypes> {
Show 15 methods
// Required methods
fn Now(&self) -> Finite<f64>;
fn TimeOrigin(&self) -> Finite<f64>;
fn GetEntries(&self) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ;
fn GetEntriesByType(
&self,
type_: DOMString,
) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ;
fn GetEntriesByName(
&self,
name: DOMString,
type_: Option<DOMString>,
) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ;
fn Mark(
&self,
cx: &mut JSContext,
markName: DOMString,
markOptions: RootedTraceableBox<PerformanceMarkOptions>,
) -> Fallible<DomRoot<D::PerformanceMark>>;
fn ClearMarks(&self, markName: Option<DOMString>);
fn Measure(
&self,
cx: &mut JSContext,
measureName: DOMString,
startOrMeasureOptions: StringOrPerformanceMeasureOptions,
endMark: Option<DOMString>,
) -> Fallible<DomRoot<D::PerformanceMeasure>>;
fn ClearMeasures(&self, measureName: Option<DOMString>);
fn ClearResourceTimings(&self);
fn SetResourceTimingBufferSize(&self, maxSize: u32);
fn GetOnresourcetimingbufferfull(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnresourcetimingbufferfull(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn Timing(&self) -> DomRoot<D::PerformanceNavigationTiming>;
fn Navigation(&self) -> DomRoot<D::PerformanceNavigation>;
}Required Methods§
fn Now(&self) -> Finite<f64>
fn TimeOrigin(&self) -> Finite<f64>
fn GetEntries(&self) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ
fn GetEntriesByType( &self, type_: DOMString, ) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ
fn GetEntriesByName( &self, name: DOMString, type_: Option<DOMString>, ) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ
fn Mark( &self, cx: &mut JSContext, markName: DOMString, markOptions: RootedTraceableBox<PerformanceMarkOptions>, ) -> Fallible<DomRoot<D::PerformanceMark>>
fn ClearMarks(&self, markName: Option<DOMString>)
fn Measure( &self, cx: &mut JSContext, measureName: DOMString, startOrMeasureOptions: StringOrPerformanceMeasureOptions, endMark: Option<DOMString>, ) -> Fallible<DomRoot<D::PerformanceMeasure>>
fn ClearMeasures(&self, measureName: Option<DOMString>)
fn ClearResourceTimings(&self)
fn SetResourceTimingBufferSize(&self, maxSize: u32)
fn GetOnresourcetimingbufferfull( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnresourcetimingbufferfull( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
fn Timing(&self) -> DomRoot<D::PerformanceNavigationTiming>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".