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 new() -> ProcessSessionPermissions
pub fn new() -> ProcessSessionPermissions
Creates an empty, independent session.
Sourcepub fn from_snapshot(
snapshot: ProcessSessionPermissionSnapshot,
) -> ProcessSessionPermissions
pub fn from_snapshot( snapshot: ProcessSessionPermissionSnapshot, ) -> ProcessSessionPermissions
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<ProcessSessionPermissions, ProcessRunnerError>
pub fn from_inherited_view( view: &ProcessSessionPermissionView, ) -> Result<ProcessSessionPermissions, 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>(
self,
backend: Factory,
) -> SessionPermissionedProcessRunnerFactory<Factory>where
Factory: PermissionedProcessRunnerFactory,
pub fn with_factory<Factory>(
self,
backend: Factory,
) -> SessionPermissionedProcessRunnerFactory<Factory>where
Factory: PermissionedProcessRunnerFactory,
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§fn clone(&self) -> ProcessSessionPermissions
fn clone(&self) -> ProcessSessionPermissions
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 moreSource§impl Debug for ProcessSessionPermissions
impl Debug for ProcessSessionPermissions
Source§impl Default for ProcessSessionPermissions
impl Default for ProcessSessionPermissions
Source§fn default() -> ProcessSessionPermissions
fn default() -> ProcessSessionPermissions
Returns the “default value” for a type. Read more
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