pub struct Config {
pub mode: Mode,
pub network: Network,
pub network_allow: Vec<Vec<String>>,
pub network_allow_prefix: Vec<Vec<String>>,
pub writable: Vec<String>,
}Expand description
[sandbox] in speccoder.toml.
Fields§
§mode: ModeWhether to sandbox.
network: NetworkThe network for every command.
network_allow: Vec<Vec<String>>Exact commands that get the network ([["cargo", "fetch"]]).
network_allow_prefix: Vec<Vec<String>>Command prefixes (two elements or more) that get the network.
writable: Vec<String>More writable paths (~ is the home directory).
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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,
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.