pub enum OnUnavailable {
Refuse,
Degrade,
}Expand description
What to do when a requested profile cannot be fully enforced.
Variants§
Refuse
Fail loud: refuse to build the session. Correct default for untrusted work — never silently run without the requested boundary.
Degrade
Proceed with degraded containment when the backend falls short. The degrade is graded by what the backend can still do:
- Partial enforcement (e.g. network blocked but writes only path-confined): the backend is kept attached — partial enforcement beats dropping to pure path-confinement.
- Unavailable (the backend enforces nothing): the backend is
dropped and the session falls back to
LocalSessionEnv’s fd-anchored path-confinement (NOT a security boundary — seeSECURITY.md).
Trait Implementations§
Source§fn clone(&self) -> OnUnavailable
fn clone(&self) -> OnUnavailable
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§fn eq(&self, other: &OnUnavailable) -> bool
fn eq(&self, other: &OnUnavailable) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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