pub trait PermissionsMethods<D: DomTypes> {
    // Required methods
    fn Query(
        &self,
        cx: SafeJSContext,
        permissionDesc: *mut JSObject,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
    fn Request(
        &self,
        cx: SafeJSContext,
        permissionDesc: *mut JSObject,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
    fn Revoke(
        &self,
        cx: SafeJSContext,
        permissionDesc: *mut JSObject,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
}

Required Methods§

source

fn Query( &self, cx: SafeJSContext, permissionDesc: *mut JSObject, _can_gc: CanGc, ) -> Rc<Promise>

source

fn Request( &self, cx: SafeJSContext, permissionDesc: *mut JSObject, _can_gc: CanGc, ) -> Rc<Promise>

source

fn Revoke( &self, cx: SafeJSContext, permissionDesc: *mut JSObject, _can_gc: CanGc, ) -> Rc<Promise>

Implementors§