pub trait ServiceWorkerContainerMethods {
    // Required methods
    fn GetController(&self) -> Option<Root<Dom<ServiceWorker>>>;
    fn Register(
        &self,
        scriptURL: USVString,
        options: &RegistrationOptions,
        _comp: InRealm<'_>,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
}

Required Methods§

source

fn GetController(&self) -> Option<Root<Dom<ServiceWorker>>>

source

fn Register( &self, scriptURL: USVString, options: &RegistrationOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

Implementors§