pub struct SessionRpcPermissionsUrls<'a> { /* private fields */ }Expand description
session.permissions.urls.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPermissionsUrls<'a>
impl<'a> SessionRpcPermissionsUrls<'a>
Sourcepub async fn set_unrestricted_mode(
&self,
params: PermissionUrlsSetUnrestrictedModeParams,
) -> Result<PermissionsUrlsSetUnrestrictedModeResult, Error>
pub async fn set_unrestricted_mode( &self, params: PermissionUrlsSetUnrestrictedModeParams, ) -> Result<PermissionsUrlsSetUnrestrictedModeResult, Error>
Toggles the runtime’s URL-permission policy between unrestricted and restricted modes.
Wire method: session.permissions.urls.setUnrestrictedMode.
§Parameters
params- Whether the URL-permission policy should run in unrestricted mode.
§Returns
Indicates whether the operation succeeded.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcPermissionsUrls<'a>
impl<'a> Clone for SessionRpcPermissionsUrls<'a>
Source§fn clone(&self) -> SessionRpcPermissionsUrls<'a>
fn clone(&self) -> SessionRpcPermissionsUrls<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionRpcPermissionsUrls<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcPermissionsUrls<'a>
impl<'a> !RefUnwindSafe for SessionRpcPermissionsUrls<'a>
impl<'a> Send for SessionRpcPermissionsUrls<'a>
impl<'a> Sync for SessionRpcPermissionsUrls<'a>
impl<'a> Unpin for SessionRpcPermissionsUrls<'a>
impl<'a> UnsafeUnpin for SessionRpcPermissionsUrls<'a>
impl<'a> !UnwindSafe for SessionRpcPermissionsUrls<'a>
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