pub enum ServiceMode {
Agent,
Production,
}Expand description
Service mode for the container.
Determines whether the container runs as an ephemeral agent sandbox or a long-running production service with stricter requirements.
Variants§
Agent
Ephemeral agent workload (default). Allows degraded fallbacks.
Production
Long-running production service. Enforces strict security invariants:
- Forbids degraded security, chroot fallback, and host networking
- Requires cgroup resource limits
- Requires pivot_root (no chroot fallback)
- Requires explicit rootfs path (no host bind mounts)
Trait Implementations§
Source§impl Clone for ServiceMode
impl Clone for ServiceMode
Source§fn clone(&self) -> ServiceMode
fn clone(&self) -> ServiceMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceMode
impl Debug for ServiceMode
Source§impl Default for ServiceMode
impl Default for ServiceMode
Source§fn default() -> ServiceMode
fn default() -> ServiceMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServiceMode
impl PartialEq for ServiceMode
Source§impl ValueEnum for ServiceMode
impl ValueEnum for ServiceMode
impl Copy for ServiceMode
impl Eq for ServiceMode
impl StructuralPartialEq for ServiceMode
Auto Trait Implementations§
impl Freeze for ServiceMode
impl RefUnwindSafe for ServiceMode
impl Send for ServiceMode
impl Sync for ServiceMode
impl Unpin for ServiceMode
impl UnsafeUnpin for ServiceMode
impl UnwindSafe for ServiceMode
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
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§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.