Skip to main content

ServiceWorkerContainerMethods

pub trait ServiceWorkerContainerMethods<D>
where D: DomTypes,
{ // Required methods fn GetController(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>; fn Register( &self, realm: &mut CurrentRealm<'_>, scriptURL: USVString, options: &RegistrationOptions, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn GetRegistration( &self, realm: &mut CurrentRealm<'_>, clientURL: USVString, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; }

Required Methods§

Source

fn GetController(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>

Source

fn Register( &self, realm: &mut CurrentRealm<'_>, scriptURL: USVString, options: &RegistrationOptions, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn GetRegistration( &self, realm: &mut CurrentRealm<'_>, clientURL: USVString, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Implementors§