pub struct DirectoryOptions {
pub read_write: bool,
pub allow_devices: bool,
pub no_exec: bool,
pub maybe: bool,
pub is_filesystem: bool,
pub is_tmp: bool,
pub no_recursive: bool,
}Expand description
Directory binding options NOTE: Unless –no-default-dirs is specified, the default set of directory rules binds /bin, /dev (with devices allowed), /lib, /lib64 (if it exists), and /usr. It also binds the working directory to /box (read-write), mounts the proc filesystem at /proc, and creates a temporary directory /tmp.
Fields§
§read_write: bool§allow_devices: bool§no_exec: bool§maybe: bool§is_filesystem: bool§is_tmp: bool§no_recursive: boolTrait Implementations§
Source§impl Clone for DirectoryOptions
impl Clone for DirectoryOptions
Source§fn clone(&self) -> DirectoryOptions
fn clone(&self) -> DirectoryOptions
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§impl Debug for DirectoryOptions
impl Debug for DirectoryOptions
Source§impl Default for DirectoryOptions
impl Default for DirectoryOptions
Source§fn default() -> DirectoryOptions
fn default() -> DirectoryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectoryOptions
impl RefUnwindSafe for DirectoryOptions
impl Send for DirectoryOptions
impl Sync for DirectoryOptions
impl Unpin for DirectoryOptions
impl UnsafeUnpin for DirectoryOptions
impl UnwindSafe for DirectoryOptions
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