pub struct Overlay {
pub workspace: PathBuf,
pub directory: PathBuf,
pub passthrough: Vec<PathBuf>,
pub rules: OverlayRules,
pub keep: Vec<PathBuf>,
pub settled: OnceLock<Settled>,
}Expand description
Where a task’s overlays live, and what passes through them to the workspace.
Fields§
§workspace: PathBufThe workspace, which the overlay is mounted over.
directory: PathBufThe task’s directory: each command’s layers in command-<index>.
passthrough: Vec<PathBuf>Paths in the workspace bound through, so that what a command writes there reaches the workspace directly.
rules: OverlayRulesThe Landlock rules each command restricts itself to once the overlay is mounted, which reads must keep to.
keep: Vec<PathBuf>Where the task may write: what its commands wrote beneath these is applied to the workspace as they end, and the rest is not.
settled: OnceLock<Settled>Set once the commands’ writes are applied.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
impl UnwindSafe for Overlay
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