pub enum MountSpecMode {
ReadOnly,
ReadWrite,
Overlay,
}Expand description
Access mode for a MountSpec.
Variants§
ReadOnly
Reads only; writes raise PermissionError in the sandbox.
ReadWrite
Files written by sandboxed code persist on the host and are untrusted;
the host must not execute them, including indirectly via a Python
import when the directory is on sys.path. Self::Overlay keeps
writes in memory instead.
Overlay
Copy-on-write overlay in parent memory; writes are discarded when the feed ends.
Trait Implementations§
Source§impl Clone for MountSpecMode
impl Clone for MountSpecMode
impl Copy for MountSpecMode
Source§impl Debug for MountSpecMode
impl Debug for MountSpecMode
impl Eq for MountSpecMode
Source§impl PartialEq for MountSpecMode
impl PartialEq for MountSpecMode
impl StructuralPartialEq for MountSpecMode
Auto Trait Implementations§
impl Freeze for MountSpecMode
impl RefUnwindSafe for MountSpecMode
impl Send for MountSpecMode
impl Sync for MountSpecMode
impl Unpin for MountSpecMode
impl UnsafeUnpin for MountSpecMode
impl UnwindSafe for MountSpecMode
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