pub struct Layer {
pub path: Vec<PathBuf>,
pub vars: Vec<(String, String)>,
pub read: Vec<PathBuf>,
pub write: Vec<PathBuf>,
pub sockets: Vec<PathBuf>,
}Expand description
Changes a run gets: PATH entries in front of the host’s, variables, and sandbox access.
Fields§
§path: Vec<PathBuf>Put in front of PATH, in this order.
vars: Vec<(String, String)>Variables to set (never PATH; see Layer::path).
read: Vec<PathBuf>§write: Vec<PathBuf>§sockets: Vec<PathBuf>Unix sockets the run may connect to without network (the Nix daemon’s).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl Move for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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