pub struct SessionRpcPermissions<'a> { /* private fields */ }Expand description
session.permissions.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPermissions<'a>
impl<'a> SessionRpcPermissions<'a>
Sourcepub async fn handle_pending_permission_request(
&self,
params: PermissionDecisionRequest,
) -> Result<PermissionRequestResult, Error>
pub async fn handle_pending_permission_request( &self, params: PermissionDecisionRequest, ) -> Result<PermissionRequestResult, Error>
Wire method: session.permissions.handlePendingPermissionRequest.
Sourcepub async fn set_approve_all(
&self,
params: PermissionsSetApproveAllRequest,
) -> Result<PermissionsSetApproveAllResult, Error>
pub async fn set_approve_all( &self, params: PermissionsSetApproveAllRequest, ) -> Result<PermissionsSetApproveAllResult, Error>
Wire method: session.permissions.setApproveAll.
Sourcepub async fn reset_session_approvals(
&self,
) -> Result<PermissionsResetSessionApprovalsResult, Error>
pub async fn reset_session_approvals( &self, ) -> Result<PermissionsResetSessionApprovalsResult, Error>
Wire method: session.permissions.resetSessionApprovals.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcPermissions<'a>
impl<'a> Clone for SessionRpcPermissions<'a>
Source§fn clone(&self) -> SessionRpcPermissions<'a>
fn clone(&self) -> SessionRpcPermissions<'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 SessionRpcPermissions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcPermissions<'a>
impl<'a> !RefUnwindSafe for SessionRpcPermissions<'a>
impl<'a> Send for SessionRpcPermissions<'a>
impl<'a> Sync for SessionRpcPermissions<'a>
impl<'a> Unpin for SessionRpcPermissions<'a>
impl<'a> UnsafeUnpin for SessionRpcPermissions<'a>
impl<'a> !UnwindSafe for SessionRpcPermissions<'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