pub struct Mount {
pub source: PathBuf,
pub target: PathBuf,
pub writable: bool,
pub executable: bool,
}Expand description
Mount point configuration.
This is the canonical Mount type used throughout evalbox.
Fields§
§source: PathBufPath on the host filesystem.
target: PathBufPath inside the sandbox.
writable: boolIf false, mount is read-only (default).
executable: boolIf true, executables can be run from this mount (for Landlock).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mount
impl RefUnwindSafe for Mount
impl Send for Mount
impl Sync for Mount
impl Unpin for Mount
impl UnsafeUnpin for Mount
impl UnwindSafe for Mount
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