pub enum SandboxCapability {
Files,
Reconnect,
Preview,
SuspendResume,
Snapshot,
DomainEgressRules,
EgressDeny,
EnforcedLimits,
ProcessLimit,
SessionLifetime,
SupervisorPidNamespace,
SupervisorIsolation,
}Expand description
Names a single sandbox capability, so an unsupported call can report which one it needed.
Variants§
Files
Moving files in and out of a session
Reconnect
Reaching a session created by an earlier call
Preview
An authenticated, port-scoped ingress capability
SuspendResume
Suspending and resuming session state
Snapshot
Capturing full session state
DomainEgressRules
Restricting egress to a hostname allowlist
EgressDeny
Refusing outbound access when a sandbox declares none
EnforcedLimits
Platform-enforced resource ceilings
ProcessLimit
A ceiling on the number of processes a session may run
SessionLifetime
A wall-clock ceiling on a session, applied by the platform rather than by a caller
SupervisorPidNamespace
A command runs in its own PID namespace, isolated from the agent supervising it
SupervisorIsolation
A command runs under a different identity than the process supervising it
Implementations§
Trait Implementations§
Source§impl Clone for SandboxCapability
impl Clone for SandboxCapability
Source§fn clone(&self) -> SandboxCapability
fn clone(&self) -> SandboxCapability
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 moreimpl Copy for SandboxCapability
Source§impl Debug for SandboxCapability
impl Debug for SandboxCapability
Source§impl<'de> Deserialize<'de> for SandboxCapability
impl<'de> Deserialize<'de> for SandboxCapability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxCapability
Source§impl PartialEq for SandboxCapability
impl PartialEq for SandboxCapability
Source§impl Serialize for SandboxCapability
impl Serialize for SandboxCapability
impl StructuralPartialEq for SandboxCapability
Auto Trait Implementations§
impl Freeze for SandboxCapability
impl RefUnwindSafe for SandboxCapability
impl Send for SandboxCapability
impl Sync for SandboxCapability
impl Unpin for SandboxCapability
impl UnsafeUnpin for SandboxCapability
impl UnwindSafe for SandboxCapability
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.