pub struct OsSandboxConfig {
pub mode: OsSandbox,
pub workspace: PathBuf,
pub allow_network: bool,
pub allow_tmp: bool,
pub extra_ro_paths: Vec<PathBuf>,
pub env_whitelist: Vec<String>,
}Expand description
Declarative configuration for an OsSandboxRunner.
Fields§
§mode: OsSandboxWhich sandbox backend to use.
workspace: PathBufWorkspace root that will be mounted read-write.
allow_network: boolWhether to allow network access inside the sandbox.
allow_tmp: boolWhether to allow read-write access to /tmp.
extra_ro_paths: Vec<PathBuf>Extra paths to bind mount read-only.
env_whitelist: Vec<String>Environment variables to pass through into the sandbox.
Implementations§
Trait Implementations§
Source§impl Clone for OsSandboxConfig
impl Clone for OsSandboxConfig
Source§fn clone(&self) -> OsSandboxConfig
fn clone(&self) -> OsSandboxConfig
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 moreAuto Trait Implementations§
impl Freeze for OsSandboxConfig
impl RefUnwindSafe for OsSandboxConfig
impl Send for OsSandboxConfig
impl Sync for OsSandboxConfig
impl Unpin for OsSandboxConfig
impl UnsafeUnpin for OsSandboxConfig
impl UnwindSafe for OsSandboxConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more