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 Layerwhere
*const u8 is !null: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for Layer
impl RefUnwindSafe for Layer
impl Send for Layerwhere
RawVecInner: Send,
impl Sync for Layerwhere
RawVecInner: Sync,
impl Unpin for Layer
impl UnsafeUnpin for Layerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Layerwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.