pub struct SandboxSettings {
pub read_roots: Vec<String>,
pub proxy_port: Option<NonZeroU16>,
}Expand description
The sandbox: section (ADR-018, ADR-019).
Fields§
§read_roots: Vec<String>Paths (directories or files) the OS layers let commands read although no
allow rule covers them: system and toolchain directories every build
reads. The hook decision ignores them, and deny rules win over them in
every layer. Absolute or ~/…, never a glob.
proxy_port: Option<NonZeroU16>The loopback port moat proxy listens on and the host sandboxes send
their commands’ traffic to; absent, the CLI’s default.
Trait Implementations§
Source§impl Clone for SandboxSettings
impl Clone for SandboxSettings
Source§impl Debug for SandboxSettings
impl Debug for SandboxSettings
Source§impl Default for SandboxSettings
impl Default for SandboxSettings
Source§impl<'de> Deserialize<'de> for SandboxSettings
impl<'de> Deserialize<'de> for SandboxSettings
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 SandboxSettings
Source§impl PartialEq for SandboxSettings
impl PartialEq for SandboxSettings
Source§impl Serialize for SandboxSettings
impl Serialize for SandboxSettings
impl StructuralPartialEq for SandboxSettings
Auto Trait Implementations§
impl Freeze for SandboxSettings
impl RefUnwindSafe for SandboxSettings
impl Send for SandboxSettings
impl Sync for SandboxSettings
impl Unpin for SandboxSettings
impl UnsafeUnpin for SandboxSettings
impl UnwindSafe for SandboxSettings
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,
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.