pub enum Execution {
BuildScript,
ProceduralMacro,
Configure,
CompilerWrapper,
GeneratedSource,
}Expand description
Something that would run code supplied by the project being audited.
Variants§
BuildScript
A Cargo build script.
ProceduralMacro
A procedural macro, expanded by compiling and calling it.
Configure
A configure step: CMake, autotools, or a generator script.
CompilerWrapper
A compiler wrapper the project interposes.
GeneratedSource
A command that generates source files.
Implementations§
Source§impl Execution
impl Execution
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
Stable lowercase identifier: what a person types to permit it, and what a report prints when it was refused.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
The class a name refers to, or None for a name this build has never
heard of — which is refused rather than ignored, since silently
dropping an unrecognised permission would leave somebody believing they
had granted one.
Sourcepub const fn cost(self) -> &'static str
pub const fn cost(self) -> &'static str
What is lost by refusing it, in the words a report uses.
Sourcepub fn permission_argument(self) -> String
pub fn permission_argument(self) -> String
The argument that permits this class.
Trait Implementations§
impl Copy for Execution
impl Eq for Execution
Source§impl Ord for Execution
impl Ord for Execution
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Execution
impl PartialOrd for Execution
impl StructuralPartialEq for Execution
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
impl UnwindSafe for Execution
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.