Struct carapace::SandboxConfig[][src]

pub struct SandboxConfig {
    pub bin: PathBuf,
    pub args: Vec<OsString>,
    pub env: Vec<OsString>,
    pub chroot: Option<PathBuf>,
    pub uid: Option<u32>,
    pub gid: Option<u32>,
    pub stdin: Option<PathBuf>,
    pub stdout: Option<PathBuf>,
    pub stderr: Option<PathBuf>,
    pub stdin_fd: Option<RawFd>,
    pub stdout_fd: Option<RawFd>,
    pub stderr_fd: Option<RawFd>,
    pub real_time_limit: Option<u64>,
    pub rlimit_cpu: Option<u32>,
    pub rlimit_as: Option<u64>,
    pub rlimit_data: Option<u64>,
    pub rlimit_fsize: Option<u64>,
    pub cg_limit_memory: Option<u64>,
    pub cg_limit_max_pids: Option<u32>,
    pub bindmount_rw: Vec<BindMount>,
    pub bindmount_ro: Vec<BindMount>,
    pub mount_proc: Option<PathBuf>,
    pub mount_tmpfs: Option<PathBuf>,
    pub priority: Option<i8>,
    pub seccomp_forbid_ipc: bool,
}

Fields

bin: PathBufargs: Vec<OsString>env: Vec<OsString>chroot: Option<PathBuf>uid: Option<u32>gid: Option<u32>stdin: Option<PathBuf>stdout: Option<PathBuf>stderr: Option<PathBuf>stdin_fd: Option<RawFd>stdout_fd: Option<RawFd>stderr_fd: Option<RawFd>real_time_limit: Option<u64>rlimit_cpu: Option<u32>rlimit_as: Option<u64>rlimit_data: Option<u64>rlimit_fsize: Option<u64>cg_limit_memory: Option<u64>cg_limit_max_pids: Option<u32>bindmount_rw: Vec<BindMount>bindmount_ro: Vec<BindMount>mount_proc: Option<PathBuf>mount_tmpfs: Option<PathBuf>priority: Option<i8>seccomp_forbid_ipc: bool

Implementations

impl SandboxConfig[src]

pub fn to_cli_cmd(&self) -> Command[src]

Trait Implementations

impl Clap for SandboxConfig[src]

impl Debug for SandboxConfig[src]

impl Default for SandboxConfig[src]

impl<'de> Deserialize<'de> for SandboxConfig[src]

impl FromArgMatches for SandboxConfig[src]

impl IntoApp for SandboxConfig[src]

impl Serialize for SandboxConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,