pub struct ActivePermissionGrants { /* private fields */ }Expand description
Point-in-time snapshot of all active session-scoped permission grants and user-authored review guidance retained by a runtime session.
Implementations§
Source§impl ActivePermissionGrants
impl ActivePermissionGrants
Sourcepub fn new(
grants: Vec<SessionPermissionGrant>,
review_guidance: Vec<ReviewGuidanceEntry>,
) -> Self
pub fn new( grants: Vec<SessionPermissionGrant>, review_guidance: Vec<ReviewGuidanceEntry>, ) -> Self
Creates an active permission snapshot from session grants and review notes.
Sourcepub fn grants(&self) -> &[SessionPermissionGrant]
pub fn grants(&self) -> &[SessionPermissionGrant]
Returns all active revocable session capability grants.
Sourcepub fn review_guidance(&self) -> &[ReviewGuidanceEntry]
pub fn review_guidance(&self) -> &[ReviewGuidanceEntry]
Returns all active revocable session review guidance entries.
Sourcepub fn has_elevated_network(&self) -> bool
pub fn has_elevated_network(&self) -> bool
Returns whether outbound network access is actively granted in this session.
Sourcepub fn has_elevated_host_integrations(&self) -> bool
pub fn has_elevated_host_integrations(&self) -> bool
Returns whether any host integration is actively granted in this session.
Trait Implementations§
Source§impl Clone for ActivePermissionGrants
impl Clone for ActivePermissionGrants
Source§impl Debug for ActivePermissionGrants
impl Debug for ActivePermissionGrants
Source§impl Default for ActivePermissionGrants
impl Default for ActivePermissionGrants
impl Eq for ActivePermissionGrants
Source§impl PartialEq for ActivePermissionGrants
impl PartialEq for ActivePermissionGrants
impl StructuralPartialEq for ActivePermissionGrants
Auto Trait Implementations§
impl Forget for ActivePermissionGrants
impl Freeze for ActivePermissionGrantswhere
*const u8 is !null: Freeze,
PhantomData<SessionPermissionGrant>: Freeze,
PhantomData<ReviewGuidanceEntry>: Freeze,
impl Move for ActivePermissionGrants
impl RefUnwindSafe for ActivePermissionGrants
impl Send for ActivePermissionGrantswhere
RawVecInner: Send,
impl Sync for ActivePermissionGrantswhere
RawVecInner: Sync,
impl Unpin for ActivePermissionGrants
impl UnsafeUnpin for ActivePermissionGrantswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SessionPermissionGrant>: UnsafeUnpin,
PhantomData<ReviewGuidanceEntry>: UnsafeUnpin,
impl UnwindSafe for ActivePermissionGrantswhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.