pub struct ProcessSessionPermissionSnapshot { /* private fields */ }Expand description
Immutable capabilities retained by one runtime session.
Implementations§
Source§impl ProcessSessionPermissionSnapshot
impl ProcessSessionPermissionSnapshot
Sourcepub fn path_rules(&self) -> &[PathAccessRule]
pub fn path_rules(&self) -> &[PathAccessRule]
Returns normalized, session-scoped path grants.
Sourcepub fn host_integrations(&self) -> &[HostIntegration]
pub fn host_integrations(&self) -> &[HostIntegration]
Returns explicitly approved native host integrations.
Sourcepub const fn network_allowed(&self) -> bool
pub const fn network_allowed(&self) -> bool
Returns whether outbound network access was explicitly granted for this session.
Sourcepub fn allowed_domains(&self) -> &[String]
pub fn allowed_domains(&self) -> &[String]
Returns exact external hostnames granted for web/browser tools in this session.
Sourcepub fn allows_domain(&self, host: &str) -> bool
pub fn allows_domain(&self, host: &str) -> bool
Returns whether host matches an exact domain granted in this session.
Sourcepub fn grants(&self) -> &[SessionPermissionGrant]
pub fn grants(&self) -> &[SessionPermissionGrant]
Returns all active session grants with their stable revocation identifiers.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ProcessSessionPermissionSnapshot
impl Freeze for ProcessSessionPermissionSnapshotwhere
*const u8 is !null: Freeze,
PhantomData<PathAccessRule>: Freeze,
PhantomData<HostIntegration>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SessionPermissionGrant>: Freeze,
impl Move for ProcessSessionPermissionSnapshot
impl RefUnwindSafe for ProcessSessionPermissionSnapshot
impl Send for ProcessSessionPermissionSnapshotwhere
RawVecInner: Send,
impl Sync for ProcessSessionPermissionSnapshotwhere
RawVecInner: Sync,
impl Unpin for ProcessSessionPermissionSnapshot
impl UnsafeUnpin for ProcessSessionPermissionSnapshotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathAccessRule>: UnsafeUnpin,
PhantomData<HostIntegration>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SessionPermissionGrant>: UnsafeUnpin,
impl UnwindSafe for ProcessSessionPermissionSnapshotwhere
RawVecInner: UnwindSafe,
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