pub struct Plan {
pub cant: String,
pub program: PathBuf,
pub entrypoint: 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.
entrypoint: PathBufThe program the cant is about: program itself, except for a can, where program is
the can’s bundled loader and this is the program it starts.
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 Planwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<(OsString, OsString)>: Freeze,
PhantomData<Grant>: Freeze,
PhantomData<EnvPattern>: Freeze,
PhantomData<String>: Freeze,
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Planwhere
RawVecInner: Send,
impl Sync for Planwhere
RawVecInner: Sync,
impl Unpin for Plan
impl UnsafeUnpin for Planwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<(OsString, OsString)>: UnsafeUnpin,
PhantomData<Grant>: UnsafeUnpin,
PhantomData<EnvPattern>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Planwhere
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