pub enum SessionGrantClearPolicy {
ClearAll,
PreserveAll,
RevokeDenied {
network_denied: bool,
denied_host_integrations: Vec<HostIntegration>,
},
}Expand description
Process backend whose active mode and sandbox options can be swapped live while keeping the parent session’s background process supervisor and live-updatable permission view intact.
Newly spawned child sessions via ProcessBackend::new_session_with read
the latest swapped backend automatically, while [Self::replace] clears
stale session-retained grants and returns a new parent ProcessSession
bound to the same background supervisor and permission view so retained
background processes remain inspectable/stoppable and future subagents
inherit only post-reload grants.
Policy governing how existing session-scoped permission grants are treated
when LiveProcessBackend swaps its active configuration.
Variants§
ClearAll
Clear all session grants (used when switching SandboxMode).
PreserveAll
Preserve all existing session grants (used when adding/removing saved workspace rules).
RevokeDenied
Selectively revoke only grants invalidated by newly denied capability policies, keeping unrelated path/domain grants intact.
Fields
denied_host_integrations: Vec<HostIntegration>Host integrations that are now CapabilityPolicy::Deny.
Trait Implementations§
Source§impl Clone for SessionGrantClearPolicy
impl Clone for SessionGrantClearPolicy
Source§impl Debug for SessionGrantClearPolicy
impl Debug for SessionGrantClearPolicy
impl Eq for SessionGrantClearPolicy
Source§impl PartialEq for SessionGrantClearPolicy
impl PartialEq for SessionGrantClearPolicy
impl StructuralPartialEq for SessionGrantClearPolicy
Auto Trait Implementations§
impl Forget for SessionGrantClearPolicy
impl Freeze for SessionGrantClearPolicy
impl Move for SessionGrantClearPolicy
impl RefUnwindSafe for SessionGrantClearPolicy
impl Send for SessionGrantClearPolicywhere
RawVecInner: Send,
impl Sync for SessionGrantClearPolicywhere
RawVecInner: Sync,
impl Unpin for SessionGrantClearPolicy
impl UnsafeUnpin for SessionGrantClearPolicy
impl UnwindSafe for SessionGrantClearPolicywhere
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
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
key and return true if they are equal.