pub struct Plan {
pub cant: String,
pub program: PathBuf,
pub argv0: OsString,
pub args: Vec<OsString>,
pub env: Vec<(OsString, OsString)>,
pub policy: Policy,
pub effective: Policy,
pub nested: bool,
pub missing_libs: Vec<String>,
}Expand description
Everything needed to start a cant.
Fields§
§cant: StringCant name, for messages.
program: PathBufCanonical path of the executable.
argv0: OsStringargv[0] (the program’s name as found, e.g. vim for /usr/bin/vim.basic).
args: Vec<OsString>Arguments after argv[0]: the manifest’s fixed arguments, then the user’s.
env: Vec<(OsString, OsString)>The complete environment of the program.
policy: PolicyThe policy to enforce (this cant’s own layer).
effective: PolicyThe policy in effect after attenuation by an enclosing cant (equal to policy when
cant is not itself running inside a cant).
nested: boolWhether an enclosing cant’s policy was found.
missing_libs: Vec<String>Shared libraries that could not be found (the loader will report them if needed).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Plan
impl Freeze for Plan
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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