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

Required Methods§

source

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

source

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

Implementors§