pub struct ProcessSessionPermissions { /* private fields */ }Expand description
Capability state owned by a single runtime session, never a global store. Network, explicitly reviewed paths, and protected metadata remain action-only.
Implementations§
Source§impl ProcessSessionPermissions
impl ProcessSessionPermissions
Sourcepub fn from_snapshot(snapshot: ProcessSessionPermissionSnapshot) -> Self
pub fn from_snapshot(snapshot: ProcessSessionPermissionSnapshot) -> Self
Creates an independent session seeded with an immutable capability snapshot.
Subsequent grants retained in the returned session stay isolated from any parent or sibling sessions that produced the snapshot.
Sourcepub fn from_inherited_view(
view: &ProcessSessionPermissionView,
) -> Result<Self, ProcessRunnerError>
pub fn from_inherited_view( view: &ProcessSessionPermissionView, ) -> Result<Self, ProcessRunnerError>
Creates an independent session seeded from a read-only parent permission view.
§Errors
Fails closed if the parent permission lock was poisoned.
Sourcepub fn view(&self) -> ProcessSessionPermissionView
pub fn view(&self) -> ProcessSessionPermissionView
Supplies a read-only view to an ordinary or permissioned process backend.
Sourcepub fn with_factory<Factory: PermissionedProcessRunnerFactory>(
self,
backend: Factory,
) -> SessionPermissionedProcessRunnerFactory<Factory>
pub fn with_factory<Factory: PermissionedProcessRunnerFactory>( self, backend: Factory, ) -> SessionPermissionedProcessRunnerFactory<Factory>
Wraps an adapter with runtime-owned approval retention. The adapter must consume this session’s read-only view when constructing its runners.
Trait Implementations§
Source§impl Clone for ProcessSessionPermissions
impl Clone for ProcessSessionPermissions
Source§impl Debug for ProcessSessionPermissions
impl Debug for ProcessSessionPermissions
Auto Trait Implementations§
impl Forget for ProcessSessionPermissions
impl Freeze for ProcessSessionPermissions
impl Move for ProcessSessionPermissions
impl RefUnwindSafe for ProcessSessionPermissions
impl Send for ProcessSessionPermissions
impl Sync for ProcessSessionPermissions
impl Unpin for ProcessSessionPermissions
impl UnsafeUnpin for ProcessSessionPermissions
impl UnwindSafe for ProcessSessionPermissions
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