pub(crate) trait ReportingObserverMethods<D>where
D: DomTypes,{
// Required methods
fn Observe(&self);
fn Disconnect(&self);
fn TakeRecords(&self) -> Vec<Report>;
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
callback: Rc<ReportingObserverCallback<D>>,
options: &ReportingObserverOptions,
) -> Root<Dom<<D as DomTypes>::ReportingObserver>>;
}
Required Methods§
fn Observe(&self)
fn Disconnect(&self)
fn TakeRecords(&self) -> Vec<Report>
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, callback: Rc<ReportingObserverCallback<D>>, options: &ReportingObserverOptions, ) -> Root<Dom<<D as DomTypes>::ReportingObserver>>
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.