pub struct GrantPermissions { /* private fields */ }๐Deprecated
Expand description
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead. EXPERIMENTAL: This feature is experimental and may change or be removed.
Implementationsยง
Sourceยงimpl GrantPermissions
impl GrantPermissions
pub fn new(permissions: impl Into<Vec<PermissionType>>) -> Self
pub fn with_origin(self, origin: impl Into<String>) -> Self
pub fn with_browser_context_id( self, browser_context_id: impl Into<BrowserContextID>, ) -> Self
Trait Implementationsยง
Sourceยงimpl Clone for GrantPermissions
impl Clone for GrantPermissions
Sourceยงfn clone(&self) -> GrantPermissions
fn clone(&self) -> GrantPermissions
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for GrantPermissions
impl Debug for GrantPermissions
Auto Trait Implementationsยง
impl Freeze for GrantPermissions
impl RefUnwindSafe for GrantPermissions
impl Send for GrantPermissions
impl Sync for GrantPermissions
impl Unpin for GrantPermissions
impl UnsafeUnpin for GrantPermissions
impl UnwindSafe for GrantPermissions
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more