pub struct ValidExec {
pub program: String,
pub flags: Vec<MatchedFlag>,
pub opts: Vec<MatchedOpt>,
pub args: Vec<MatchedArg>,
pub system_path: Vec<String>,
}Expand description
exec() invocation that has been accepted by a Policy.
Fields§
§program: String§flags: Vec<MatchedFlag>§opts: Vec<MatchedOpt>§args: Vec<MatchedArg>§system_path: Vec<String>If non-empty, a prioritized list of paths to try instead of program.
For example, /bin/ls is harder to compromise than whatever ls
happens to be in the user’s $PATH, so /bin/ls would be included for
ls. The caller is free to disregard this list and use program.
Implementations§
Trait Implementations§
impl Eq for ValidExec
impl StructuralPartialEq for ValidExec
Auto Trait Implementations§
impl Freeze for ValidExec
impl RefUnwindSafe for ValidExec
impl Send for ValidExec
impl Sync for ValidExec
impl Unpin for ValidExec
impl UnwindSafe for ValidExec
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more